/* =========================
   A365 Ad Blocks (BASE)
   ========================= */

.a365-ad{
  width: min(360px, 100%)!important;
  height: auto;
  margin: 0 auto;

  background: #F4F4F4;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 2px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}

@media (max-width:600px){
  .a365-ad{
    width: 100%!important;
    max-width: 90vw!important;
    margin: 0 auto;
  }
.a365-ad__title{
  margin: 0;
  font-size: 1.15rem!important;
  line-height: 1!important;
  font-weight: 600!important;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
}
}

.a365-ad__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px 14px;
}

.a365-ad__headleft{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.a365-ad__label{
  font-size: .65rem!important;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  margin: 0 0 2px 0;
}

.a365-ad__title{
  margin: 0;
  font-size: 0.97rem!important;
  line-height: 1.0;
  font-weight: 600;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a365-ad__logo{
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  flex: 0 0 auto;
}

.a365-ad__footer{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 14px 14px;
  background: rgba(255,255,255,.45);
  border-top: 1px solid rgba(0,0,0,.06);
}

.a365-ad__text{
  margin: 0;
  font-size: .90rem;
  line-height: 1.25;
  color: rgba(0,0,0,.85);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a365-ad__cta{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 3px;
  background: #F0CC0C;
  color: #000;
  text-decoration: none!important;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .08s ease, filter .15s ease;
  white-space: nowrap;
}

.a365-ad__cta:hover{
  filter: brightness(1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.a365-ad__cta:active{
  transform: translateY(0px);
}

/* Focus zichtbaar */
.a365-ad__track:focus-visible,
.a365-ad__product:focus-visible,
.a365-ad__media:focus-visible,
.a365-ad__cta:focus-visible{
  outline: 3px solid rgba(11,99,206,.35);
  outline-offset: 3px;
}

/* =========================
   STRIP variant
   ========================= */

.a365-ad--strip .a365-ad__products{
  flex: 0 0 auto;
  padding: 10px 10px 12px 10px;
}

.a365-ad--strip .a365-ad__track{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;

  scrollbar-width: thin;
  overscroll-behavior-x: contain;

  cursor: grab;
}

.a365-ad--strip .a365-ad__track.is-dragging{
  cursor: grabbing;
  user-select: none;
}

.a365-ad--strip .a365-ad__track::-webkit-scrollbar{ height: 8px; }
.a365-ad--strip .a365-ad__track::-webkit-scrollbar-track{
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}
.a365-ad--strip .a365-ad__track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.20);
  border-radius: 999px;
}

.a365-ad--strip .a365-ad__product{
  flex: 0 0 auto;
  width: 160px;
  height: 190px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 3px!important;
  overflow: hidden;
}

.a365-ad--strip .a365-ad__product-media{
  height: 135px;
  background: rgba(255,255,255,.6);
  overflow: hidden;
}

.a365-ad--strip .a365-ad__product-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.a365-ad--strip .a365-ad__product-title{
  margin: 0;
  padding: 8px 10px 10px 10px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.15;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a365-ad--strip .a365-ad__product:hover{
  filter: brightness(0.98);
}

/* =========================
   CUSTOM variant (media vult midden)
   ========================= */

.a365-ad--custom{
  height: 420px; /* jouw vaste max */
}

.a365-ad--custom .a365-ad__media{
  display: block;
  flex: 1 1 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.a365-ad--custom .a365-ad__image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform .25s ease;
}

.a365-ad--custom .a365-ad__media:hover .a365-ad__image{
  transform: scale(1);
}
/* --- STRIP: minder rond + extra gap links --- */

/* extra ruimte vóór het eerste product */
.a365-ad--strip .a365-ad__track{
  padding-left: 10px!important;   /* gap links */
  padding-right: 10px!important;  /* optioneel: ook rechts mooi eindigen */
}

/* minder ronde product-afbeelding (3px) */
.a365-ad--strip .a365-ad__product-media{
  border-radius: 3px!important;
}

.a365-ad--strip .a365-ad__product-media img{
  border-radius: 3px!important;
}
@media (max-width: 600px){
  .a365-ad .xtr{
    width: 100% !important;
    max-width: 100%!important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* ==========================================
   A365 ADS — TYPO RESET (voorkomt doorlekken)
   Plaats dit NA algemene typography CSS
   ========================================== */

.a365-ad,
.a365-ad *{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-weight: 400 !important;
  box-sizing: border-box;
}

.a365-ad p,
.a365-ad h1,
.a365-ad h2,
.a365-ad h3,
.a365-ad h4,
.a365-ad h5,
.a365-ad h6{
  margin: 0 !important;
  padding: 0 !important;
}

.a365-ad a{
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 700 !important; /* CTA/links blijven ‘stevig’ */
}

.a365-ad a:hover{
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.a365-ad img{
  max-width: 100% !important;
  height: auto;
  display: block;
}

.a365-ad,
.a365-ad *{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-sizing: border-box;
}

/* Basistekst binnen ad: normaal gewicht */
.a365-ad{
  font-weight: 400;
}

.a365-ad__title{ font-weight: 600!important;font-size: 1.15rem!important; }
.a365-ad__product-title{ font-weight: 600; }
.a365-ad__cta{ font-weight: 700; }
.a365-ad__label{ font-weight: 600;font-size: 0.75rem!important; } /* of 500 */
.a365-ad__text{ font-weight: 400;font-size: 14.5px !important; }
