
/* ==========================================
   WITGOEDONDERDEEL.COM
   PRODUCTKAARTEN EN BLOGTYPOGRAFIE
   Proxima - compacte weergave
   ========================================== */

/* ==========================================
   1. PRODUCTKAART CONTAINER
   ========================================== */

#blog-content .blog-product {
  margin: 24px 0;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

/* ==========================================
   2. PRODUCTKAART
   ========================================== */

#blog-content .blog-product-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 13px 15px;

  background: #f7f9fb;
  border: 1px solid #e4e9ee;
  border-radius: 9px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover over de volledige kaart */
#blog-content .blog-product-card:hover {
  background: #f2f7fb;
  border-color: #b5cbdc;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.055);
}

/* Toetsenbordnavigatie */
#blog-content .blog-product-card:focus-within {
  outline: 2px solid #087dc1;
  outline-offset: 2px;
}

/* ==========================================
   3. PRODUCTAFBEELDING
   ========================================== */

#blog-content .blog-product-image {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 75px;
  width: 75px;
  height: 75px;

  text-decoration: none;
}

#blog-content .blog-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 75px;
  max-height: 75px;
  object-fit: contain;
}

/* ==========================================
   4. PRODUCTINFORMATIE
   ========================================== */

/* Binnen deze container staat de knop rechts.
   De teksten staan links. */

#blog-content .blog-product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  column-gap: 12px;
  align-items: center;

  flex: 1;
  min-width: 0;
}

/* Productnaam */
#blog-content .blog-product-title {
  display: block;
  grid-column: 1;

  margin: 0 0 5px;
  color: #20252b;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  overflow-wrap: anywhere;
  text-decoration: none;
}

#blog-content .blog-product-title:hover {
  color: #087dc1;
  text-decoration: none;
}

/* Prijs */
#blog-content .blog-product-price {
  grid-column: 1;

  margin: 0 0 3px;
  color: #20252b;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* Voorraadstatus */
#blog-content .blog-product-stock {
  grid-column: 1;

  margin: 0;
  color: #258344;

  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================
   5. BLAUWE PIJLKNOP RECHTS
   ========================================== */

#blog-content .blog-product-button {
  /* Position: static is bewust.
     Hierdoor kan de klikbare laag zich
     uitstrekken over de hele productkaart. */

  position: static;

  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  padding: 0;

  background: #087dc1;
  color: #fff;
  border-radius: 5px;

  font-size: 0;
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;

  transition: background 0.2s ease;
}

/* Witte pijl exact in het midden */
#blog-content .blog-product-button::before {
  content: "›";

  display: block;

  color: #fff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;

  transform: translateY(-1px);
}

/* ==========================================
   6. VOLLEDIGE PRODUCTKAART KLIKBAAR
   ========================================== */

/* De knop blijft een echte HTML-link.

   Omdat de knop position: static heeft
   en de kaart position: relative,
   vult de onderstaande klikbare laag
   de volledige productkaart.

   Geen extra JavaScript nodig.
*/

#blog-content .blog-product-button::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;
  cursor: pointer;
}

/* Hover op de kaart verandert knopkleur */
#blog-content .blog-product-card:hover
.blog-product-button {
  background: #066ba6;
  color: #fff;
}

/* ==========================================
   7. PRODUCTKAARTEN NAAST ELKAAR
   ========================================== */

/* Wordt gebruikt wanneer JavaScript
   opeenvolgende productkaarten groepeert. */

#blog-content .blog-product-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;
  margin: 24px 0;
  width: 100%;
}

/* Geen dubbele marges binnen groep */
#blog-content .blog-product-group > .blog-product {
  margin: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* Kaarten even hoog binnen het raster */
#blog-content .blog-product-group .blog-product-card {
  height: 100%;
}

/* ==========================================
   8. TABLET EN MOBIEL
   ========================================== */

@media (max-width: 700px) {

  /* Gegroepeerde kaarten onder elkaar */
  #blog-content .blog-product-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 20px 0;
  }

  #blog-content .blog-product {
    margin: 20px 0;
  }

  #blog-content .blog-product-card {
    gap: 12px;
    min-height: 92px;
    padding: 12px;
    border-radius: 8px;
  }

  #blog-content .blog-product-image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }

  #blog-content .blog-product-image img {
    max-width: 70px;
    max-height: 70px;
  }

  #blog-content .blog-product-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
  }

  #blog-content .blog-product-price {
    font-size: 17px;
  }

  #blog-content .blog-product-stock {
    font-size: 12px;
  }
}

/* ==========================================
   9. EXTRA KLEINE TELEFOONS
   ========================================== */

@media (max-width: 360px) {

  #blog-content .blog-product-card {
    gap: 10px;
    padding: 10px;
  }

  #blog-content .blog-product-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }

  #blog-content .blog-product-image img {
    max-width: 60px;
    max-height: 60px;
  }

  #blog-content .blog-product-info {
    grid-template-columns: minmax(0, 1fr) 32px;
    column-gap: 8px;
  }

  #blog-content .blog-product-button {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   10. BLOG TYPOGRAFIE
   Aansluitend op Proxima
   ========================================== */

#blog-content {
  font-family: var(
    --font-body,
    "Open Sans",
    Helvetica,
    Arial,
    sans-serif
  );

  font-size: 15px;
  line-height: 1.6;
}

/* Normale alinea's */
#blog-content > p {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* H2 - Hoofdonderwerpen */
#blog-content > h2 {
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.35;
}

/* H3 - Subonderwerpen */
#blog-content > h3 {
  margin-top: 24px;
  margin-bottom: 11px;
  line-height: 1.4;
}

/* Lijsten en stappenplannen */
#blog-content > ul,
#blog-content > ol {
  margin-top: 8px;
  margin-bottom: 20px;
  padding-left: 25px;
  line-height: 1.6;
}

#blog-content > ul > li,
#blog-content > ol > li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Geen extra ruimte boven het eerste element */
#blog-content > :first-child {
  margin-top: 0;
}

/* ==========================================
   11. BLOG TYPOGRAFIE OP MOBIEL
   ========================================== */

@media (max-width: 575px) {

  #blog-content > h2 {
    margin-top: 27px;
    margin-bottom: 12px;
  }

  #blog-content > h3 {
    margin-top: 21px;
    margin-bottom: 10px;
  }

  #blog-content > p {
    margin-bottom: 16px;
  }
}
