/*
Theme Name: Edura Child Somt
Theme URI: https://www.somt.nl/
Description: Edura Child Theme - somt.nl
Author: Somt / Rob S., Mike S.
Author URI: https://www.somt.nl/
Template: edura
Version: 1.0.3
*/

/* --- Aanmeldknop onder productafbeelding --- */
.somt-aanmeld-knop {
  margin-top: 1.5rem;
  text-align: left;
}

.somt-aanmeld-knop .single_add_to_cart_button {
  background-color: #004c72 !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.somt-aanmeld-knop .single_add_to_cart_button:hover {
  background-color: #006b9a !important;
}

/* --- Verbeterde breadcrumbs --- */
.woocommerce-breadcrumb {
  font-size: 14px;
  color: #004c72;
  margin-bottom: 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.woocommerce-breadcrumb a {
  color: #004c72;
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

.woocommerce-breadcrumb .breadcrumb-separator {
  color: #999;
  font-weight: normal;
}

/* === SOMT cursusoverzicht === */
.somt-filterbalk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.somt-filterbalk .filter-field {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.somt-filterbalk label {
  font-weight: 600;
  color: #004b8d;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.somt-filterbalk select {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccd2da;
  border-radius: 6px;
  background: #f9fbfc;
  min-width: 150px;
}

.filter-button {
  background: #004b8d;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.filter-button:hover {
  background: #0062b3;
}

/* === Cursuskaart (beeld links, tekst rechts) === */
.somt-cursuskaart {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, transform .2s ease;
  margin-bottom: 22px;
  overflow: hidden;
  min-height: 200px;
}

.somt-cursuskaart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.somt-cursuskaart > a {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.somt-cursuskaart .cursus-image {
  grid-column: 1 / 2;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.somt-cursuskaart .cursus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.somt-cursuskaart .cursus-content {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4px;
}

.somt-cursuskaart .cursus-title {
  font-size: 1.25rem;
  line-height: 1.35;
  color: #004b8d;
  font-weight: 800;
  margin: 2px 0 10px;
}

.somt-cursuskaart .extra-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.somt-cursuskaart .extra-info p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.5;
}

.somt-cursuskaart .extra-info strong {
  color: #004b8d;
  font-weight: 700;
  margin-right: 6px;
}

/* === Mobiele layout === */
@media (max-width: 768px) {
  .somt-filterbalk {
    flex-direction: column;
    align-items: stretch;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .somt-cursuskaart {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
  }

  .somt-cursuskaart .cursus-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
  }

  .somt-cursuskaart .cursus-content {
    padding: 1rem;
  }

  .somt-cursuskaart .cursus-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004c80;
    margin-bottom: 0.5rem;
  }

  .somt-cursuskaart .extra-info p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
  }
}

/* --- Weinig voorraad melding --- */
.weinig-voorraad {
  color: #b3261e;
  font-weight: 600;
  background: #ffeceb;
  border-left: 4px solid #b3261e;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 0.95rem;
}


/* === WooCommerce standaard knoppen === */
.single_add_to_cart_button {
  background-color: #004c72 !important;
  color: white !important;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
}

.single_add_to_cart_button:hover {
  background-color: #006b9a !important;
}

/* ==== Fix voor horizontaal scrollen bij lange titels ==== */
h1, .elementor-heading-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Beperk H1-grootte op mobiel */
@media (max-width: 767px) {
  h1, .entry-title, .page-title {
    font-size: 2.2rem !important;   /* pas aan naar wens, bv. 1.6rem voor nog kleiner */
    line-height: 1.2 !important;
  }
}


body, html {
  overflow-x: hidden;
}

/* --- Fix: lange woorden in info-blok op mobiel --- */
.somt-product-extra-info,
.custom-product-fields,
.woocommerce-product-attributes,
.somt-product-extra-info p,
.custom-product-fields p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

@media (max-width: 768px) {
  .somt-product-extra-info,
  .custom-product-fields {
    padding: 1rem;
    box-sizing: border-box;
    max-width: 100%;
  }
}

