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

.p-0 {
    padding: 0;
}

.m-0 {
    margin: 0;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.gap-x-2 {
    column-gap: 0.5rem /* 8px */;
}

.w-full {
    width: 100%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.bg-dt {
    background-color: #03BD63;
}   

.bg-white {
    background-color: #fff;
}

.text-white {
    color: #fff;
}

.absolute {
    position: absolute;
}

.rounded-rb-lg {
    border-radius: 0 0 10px 0;
}

.rounded-b-lg {
    border-radius: 10px 10px;
}

.left-0 {
    left: 0px;
}

.left-80 {
    left: 80%;
}

.right-10 {
    right: calc(5% + 70px);
}

.px-5 {
    padding-left: 1.25rem /* 20px */;
    padding-right: 1.25rem /* 20px */;
}
.z-100 {
    z-index: 100;
    height: 30px;
}

.hide-on-mobile {
    display: flex;
}

/* kolumner i header. */
.dropdown-menu--visible.three-col-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: max-content;
}

/* Diskegenskaper på produktlista */
.disc-properties {
    display: none;
}
.product:hover .disc-properties {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
    justify-content: center;
    gap: 5px;
}

.disc-properties span {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #00BF62;
    border-radius: 32px;
    color: white;
}

/* Om-oss personliga kort */

.two-third img {
    border-radius: 10px;
}

.column.third .is-card {
    width: 100%;
    text-align: center;
    border-radius: 10px;
    border: none;
}
.column.third .is-card .margin-25 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
}

.column.third .is-card .margin-25 img {
    width: 50%;
}

/* Märkessidor: "Lär dig mer"-sektion under produkterna */
.brand-learn-link {
  display: inline-block;
  margin: 0.25rem auto 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: #00bf63;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.brand-learn-link:hover { background: #00a656; transform: translateY(-2px); }
.collection-header h1 + .brand-learn-link { display: table; }
.brand-learn { margin: 2.5rem 0 1rem; scroll-margin-top: 90px; }
.brand-learn-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 0;
  border-bottom: 4px solid #008a46;
  border-radius: 16px;
  background: #00bf63;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}
.brand-learn-toggle:hover { background: #00a656; transform: translateY(-2px); }
.brand-learn-toggle svg { transition: transform 0.25s ease; }
.brand-learn.is-open .brand-learn-toggle svg { transform: rotate(180deg); }
.brand-learn-panel { padding: 1.5rem 0 0; }

/* Märkesmall (HTML finns i _files/partials/brand_mall.mustache) */
.dg-brand { font-size: 0.92rem; line-height: 1.5; color: #222; }
.dg-brand h2 { font-size: 1.5rem; margin: 0 0 0.4rem; font-weight: 700; }
.dg-brand h3 { font-size: 1.15rem; margin: 1.6rem 0 0.3rem; font-weight: 700; }
.dg-brand p { margin: 0 0 0.6rem; }
.dg-eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #00894a; margin-bottom: 0.2rem; }
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 0.9rem 0 1.4rem; }
.dg-grid.dg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dg-card { display: block; background: #fff; border: 1px solid #e4e6e4; border-bottom: 4px solid #d9dcd9; border-radius: 14px; padding: 0.8rem 1rem; box-shadow: 0 6px 14px rgba(0,0,0,0.09); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dg-card .dg-type { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #6b716b; }
.dg-card .dg-name { font-size: 1.05rem; font-weight: 700; margin: 0.1rem 0; }
.dg-card .dg-flight { display: inline-block; font-size: 0.75rem; font-weight: 700; background: #e8f8ef; color: #006836; border-radius: 999px; padding: 0.05rem 0.55rem; margin-bottom: 0.3rem; }
.dg-card p { font-size: 0.82rem; line-height: 1.4; margin: 0 0 0.4rem; color: #444; }
.dg-card .dg-link { font-size: 0.82rem; font-weight: 700; color: #006836; text-decoration: none; }
.dg-card.dg-soon { background: #f6f7f6; border-style: dashed; box-shadow: none; }
@media (hover: hover) { a.dg-card:hover { transform: translateY(-4px); border-color: #00bf63; border-bottom-color: #00bf63; box-shadow: 0 12px 22px rgba(0,0,0,0.15); } }
@media (max-width: 767px) { .dg-grid, .dg-grid.dg-grid-4 { grid-template-columns: 1fr; gap: 0.7rem; } }

/* Kort i beskrivningstexten (kategorisidor): samma 3D-look + kompakt */
.brand-learn-panel a[href*="/marken/"][style*="border"] {
  background: #fff !important;
  border: 1px solid #e4e6e4 !important;
  border-bottom: 4px solid #d9dcd9 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10) !important;
  height: auto !important;
  padding: 0.7rem 0.9rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-learn-panel a[href*="/marken/"][style*="border"] > div { margin-bottom: 2px !important; line-height: 1.35 !important; }
.brand-learn-panel a[href*="/marken/"][style*="border"] > div:nth-child(2) { font-size: 17px !important; }
.brand-learn-panel a[href*="/marken/"][style*="border"] > div:last-child { margin-top: 4px; color: #006836; }
.brand-learn-panel div[style*="border:1px solid #e2e2e2"] {
  height: auto !important;
  padding: 0.7rem 0.9rem !important;
  border-radius: 14px !important;
  border-style: dashed !important;
}
.brand-learn-panel table { border-collapse: separate !important; border-spacing: 12px !important; margin: 0 -12px !important; width: calc(100% + 24px) !important; }
.brand-learn-panel h2 { margin-bottom: 4px !important; }
.brand-learn-panel p { font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 6px !important; }
.brand-learn-panel div[style*="margin:0 0 24px"] { margin-bottom: 14px !important; }
@media (hover: hover) {
  .brand-learn-panel a[href*="/marken/"][style*="border"]:hover {
    transform: translateY(-4px);
    border-color: #00bf63 !important;
    border-bottom-color: #00bf63 !important;
    box-shadow: 0 12px 22px rgba(0,0,0,0.16) !important;
  }
}
@media (max-width: 767px) {
  .brand-learn-panel table, .brand-learn-panel tbody, .brand-learn-panel tr, .brand-learn-panel td { display: block !important; width: 100% !important; }
  .brand-learn-panel table { margin: 0 !important; border-spacing: 0 !important; }
  .brand-learn-panel td { margin-bottom: 10px; }
}

/* Märken = landningssida: inga produkter, ingen filtrering */
html.brand-landing .products-grid ~ div,
html.brand-landing [id*="filter" i]:not(html):not(body),
html.brand-landing [class*="filter" i]:not(html):not(body) {
  display: none !important;
}

/* Märken: 3D-kort i kategorins beskrivning */
.products-grid a[href*="/marken/"][style*="border"],
.collection-header a[href*="/marken/"][style*="border"] {
  background: #fff !important;
  border: 1px solid #e4e6e4 !important;
  border-bottom: 4px solid #d9dcd9 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .products-grid a[href*="/marken/"][style*="border"]:hover {
    transform: translateY(-6px);
    border-color: #00bf63 !important;
    border-bottom-color: #00bf63 !important;
    box-shadow: 0 14px 24px rgba(0,0,0,0.16) !important;
  }
}
.products-grid a[href*="/marken/"][style*="border"]:active {
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .product-hover-overlay {
    width: 100%;
    height: 2.3rem;
    left: 0;
    bottom: -2.1rem;
    padding: 0 0.5rem;
    border-radius: 0;
    white-space: nowrap;
    box-shadow: none;
    background: #fff;
    -webkit-transform: translateY(0.5rem);
    transform: translateY(0.5rem);
  }
  .product:hover .product-hover-overlay,
  .product-slide:hover .product-hover-overlay {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .product-hover-overlay .text-base {
    font-size: 0.8rem;
  }
  .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::after {
    content: "Unikt exemplar – bara en finns! Lägg i varukorgen så reserverar vi discen åt dig i några minuter.";
    position: absolute;
    left: calc(100% + 0.7rem);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 13rem;
    padding: 0.6rem 0.8rem;
    background: #222;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 500;
    white-space: normal;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 20;
    pointer-events: none;
    opacity: 1;
    transition: none;
    animation: none;
    background: #222 !important;
  }
  @media (min-width: 768px) {
    .product:hover, .product-slide:hover {
      position: relative;
      z-index: 50;
    }
  }
  .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::before {
    content: "";
    position: absolute;
    left: calc(100% + 0.2rem);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border: 0.3rem solid transparent;
    border-right-color: #222;
    border-left-width: 0;
    z-index: 20;
    pointer-events: none;
  }
  .row > .product:nth-child(4n+3) .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::after,
  .row > .product:nth-child(4n) .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::after {
    left: auto;
    right: calc(100% + 0.7rem);
  }
  .row > .product:nth-child(4n+3) .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::before,
  .row > .product:nth-child(4n) .product-hover-overlay:not(.disc-properties):has(.qs-cart-submit):hover::before {
    left: auto;
    right: calc(100% + 0.2rem);
    border-right-color: transparent;
    border-left-color: #222;
    border-left-width: 0.3rem;
    border-right-width: 0;
  }
  .product .product-price,
  .product-slide .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
  }
  .product .product-before-price,
  .product-slide .product-before-price {
    font-size: 0.9rem;
  }
  .product-hover-overlay {
    align-items: center;
    justify-content: center;
  }
  .product-hover-overlay .qs-cart-submit,
  .product-hover-overlay > a {
    display: inline-block;
    width: auto;
    min-width: 70%;
    padding: 0.55rem 1.6rem;
    border-radius: 999px !important;
    background: #00bf63 !important;
    border: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .product-hover-overlay .qs-cart-submit span,
  .product-hover-overlay > a,
  .product-hover-overlay .qs-cart-submit {
    color: #fff !important;
  }
  .product-hover-overlay .qs-cart-submit:hover,
  .product-hover-overlay > a:hover {
    background: #00a656 !important;
    transform: scale(1.03);
  }
}


select {
    appearance: none;
    -webkit-appearance: none;
}

@media screen and (max-width: 600px) {
  .green-text{color: #006836;}
  .disc-properties {
    display: flex;
  }
  .hide-on-mobile {
      display:none;
  }
  
}

.ribbon-condition  {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    line-height: 30px;
    width: 30px;
    display: block;
    border-radius: 50%;
    background: #03BD63;
    /* background: linear-gradient(#ffffff 0%, #ffffff 100%); */
    box-shadow: none;
    position: absolute;
    bottom: 17px;
    right: 0px;
    height: 30px;
}

.ribbon-condition-new {
    width: 30px !important;
    height: 45px !important;
}