/*
Theme Name: Sportcoachplein Child
Theme URI: https://www.sportcoachplein.nl
Template: sportcoachplein
Author: KWDV
Author URI: https://www.kwdv.nl
Description: Child theme van Sportcoachplein. Plaats hier veilige aanpassingen; het parent theme blijft update-proof.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportcoachplein-child
*/

/* Eigen aanpassingen hieronder toevoegen. */

/* ── Productpagina: eigenschappen-labels links uitlijnen ── */
.woocommerce-product-attributes-item__label,
table.shop_attributes th {
    text-align: left !important;
}

/* ── Hulpblok op productpagina ── */
.scp-hulpblok{margin:48px 0}
.scp-hulpblok__titel{font-size:20px;font-weight:800;text-transform:uppercase;letter-spacing:.2px;margin:0 0 16px}
.scp-hulpblok__contact{background:#f2f2f2;border-radius:14px;padding:22px 26px;display:flex;flex-wrap:wrap;gap:16px 40px;margin-bottom:22px}
.scp-hulpblok__contactitem{display:flex;align-items:center;gap:14px}
.scp-hulpblok__ico{font-size:22px;color:#111;line-height:1}
.scp-hulpblok__label{display:block;font-weight:700;color:#111;font-size:15px}
.scp-hulpblok__contactitem a{color:#da0f10;text-decoration:none;font-weight:600}
.scp-hulpblok__contactitem a:hover{text-decoration:underline}
.scp-hulpblok__body{display:flex;align-items:center;justify-content:space-between;gap:28px;border:1px solid #e6e6e6;border-radius:14px;padding:24px 26px}
.scp-hulpblok__usps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;flex:1 1 auto}
.scp-hulpblok__usps li{display:flex;align-items:flex-start;gap:10px;font-size:16px;line-height:1.4}
.scp-hulpblok__check{color:#52b04b;margin-top:3px;flex:0 0 auto}
.scp-hulpblok__persoon{flex:0 0 auto;width:200px;max-width:40%;text-align:center}
.scp-hulpblok__persoon img,.scp-hulpblok__placeholder{display:block;width:100%;height:auto;border-radius:12px}
@media(max-width:782px){.scp-hulpblok__body{flex-direction:column-reverse;align-items:stretch}.scp-hulpblok__persoon{width:160px;max-width:60%;margin:0 auto}}

/* ── Filter: "Lees meer" na 5 opties (CSS-only) ── */
.scp-meer-toggle{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden;clip:rect(0 0 0 0)}
.scp-filter__lijst .scp-verborgen{display:none}
.scp-meer-toggle:checked + .scp-filter__lijst .scp-verborgen{display:list-item}
.scp-meer-knop{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:14px;font-weight:600;color:#da0f10;cursor:pointer;user-select:none}
.scp-meer-knop:hover{text-decoration:underline}
.scp-meer-knop::before{content:"Lees meer"}
.scp-meer-knop::after{content:"\f078";font-family:"Font Awesome 6 Free";font-weight:900;font-size:11px}
.scp-meer-toggle:checked ~ .scp-meer-knop::before{content:"Lees minder"}
.scp-meer-toggle:checked ~ .scp-meer-knop::after{content:"\f077"}

/* ── Kleur-facet: klikbare kleurbollen (swatches) ── */
.scp-filter__lijst--kleur li{margin:0}
.scp-filter__lijst--kleur .scp-kleur{display:flex;align-items:center;gap:10px;cursor:pointer;padding:5px 0}
.scp-filter__lijst--kleur input[type=checkbox]{position:absolute;opacity:0;width:0;height:0;margin:0}
.scp-kleur__bol{width:22px;height:22px;border-radius:50%;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);transition:box-shadow .12s ease}
.scp-kleur:hover .scp-kleur__bol{box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px rgba(218,15,16,.35)}
.scp-filter__lijst--kleur input:checked + .scp-kleur__bol{box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px #fff,0 0 0 4px #da0f10}
.scp-filter__lijst--kleur .scp-filter__naam{font-size:15px;line-height:1.2}
.scp-filter__lijst--kleur .scp-filter__count{color:#767676;font-size:13px}


/* ── Productcard: gele mediabalk weghalen ── */
.scp-product-kaart__media{background:#fff !important}

/* ── Productpagina broodkruimel: volledig op desktop, alleen diepste categorie op mobiel ── */
.scp-kruimel--product{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
@media(max-width:782px){
  .scp-kruimel--product .scp-kruimel__desktop,.scp-kruimel--product .scp-kruimel__sep{display:none !important}
  .scp-kruimel--product .scp-kruimel__diep{display:inline-flex;align-items:center;gap:6px;font-weight:600}
  .scp-kruimel--product .scp-kruimel__diep::before{content:"\f053";font-family:"Font Awesome 6 Free";font-weight:900;font-size:12px}
}

/* ── Betaal- & bezorgiconen (footer + productpagina) ── */
.scp-betaal{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;padding:0}
.scp-betaal li{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 8px;background:#fff;border:1px solid #e6e6e6;border-radius:8px}
.scp-betaal li svg{height:20px;width:auto;display:block}
.scp-betaal__postnl svg{height:26px}

/* Hulpblok: betaalregel onder de USP's */
.scp-hulpblok__betaal{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:22px;padding-top:20px;border-top:1px solid #e6e6e6}
.scp-hulpblok__betaal-label{font-weight:600;color:#555;font-size:14px}


/* ── Menu: "Sporten" mega-dropdown ── */
.scp-nav__mega-item{position:relative}
.scp-nav__mega-trigger{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.scp-nav__mega-trigger i{font-size:11px;transition:transform .15s}
.scp-nav__mega-item:hover .scp-nav__mega-trigger i{transform:rotate(180deg)}
.scp-mega{position:absolute;top:100%;left:0;z-index:60;width:min(720px,92vw);background:#fff;border:1px solid #eee;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.14);padding:16px;margin-top:12px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease}
.scp-nav__mega-item:hover .scp-mega,.scp-nav__mega-item:focus-within .scp-mega{opacity:1;visibility:visible;transform:translateY(0)}
.scp-mega::before{content:"";position:absolute;bottom:100%;left:0;right:0;height:16px}
.scp-mega__grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.scp-mega__kaart{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:12px;text-decoration:none;transition:background .12s}
.scp-mega__kaart:hover{background:#f6f6f6}
.scp-mega__img{flex:0 0 auto;width:52px;height:52px;border-radius:10px;background:#f2f2f2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.scp-mega__img img{width:100%;height:100%;object-fit:cover;display:block}
.scp-mega__img i{font-size:22px;color:#da0f10}
.scp-mega__tekst{display:flex;flex-direction:column;gap:2px;min-width:0}
.scp-mega__titel{font-weight:700;color:#111;font-size:15px;line-height:1.2}
.scp-mega__zin{color:#666;font-size:13px;line-height:1.35}
@media(max-width:900px){
  .scp-mega{position:static;width:auto;box-shadow:none;border:0;padding:6px 0;margin:0;opacity:1;visibility:visible;transform:none}
  .scp-mega__grid{grid-template-columns:1fr}
  .scp-nav__mega-trigger i{display:none}
}

.scp-mega{max-height:min(72vh,640px);overflow-y:auto}
@media(max-width:900px){.scp-mega{max-height:none;overflow:visible}}


/* ── Megamenu-correcties: 1290px, 3 kolommen, tegen label, links uitgelijnd ── */
.scp-nav__scroll .scp-container{position:relative}
.scp-nav__mega-item{position:static}
.scp-mega{left:0;width:1290px;max-width:calc(100vw - 24px);margin-top:0;max-height:none;overflow:visible}
.scp-mega::before{height:18px}
.scp-mega__grid{grid-template-columns:repeat(3,1fr)}
.scp-mega__kaart{flex-direction:row;align-items:center}
.scp-mega__tekst{flex-direction:column;align-items:flex-start}
@media(max-width:900px){
  .scp-mega{width:auto;max-width:none;left:auto}
  .scp-mega__grid{grid-template-columns:1fr}
}

/* ── Hulpblok in de koopkolom ── */
.scp-product .scp-hulpblok{margin:22px 0 0}

/* ── Paginatie: strak, zonder omkaderende lijnen, meer ruimte ── */
.woocommerce-pagination{margin-top:40px !important}
.woocommerce-pagination ul.page-numbers{border:0 !important;display:flex !important;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0}
.woocommerce-pagination ul.page-numbers li{border:0 !important;margin:0 !important}
.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers{border:0 !important;border-radius:10px;min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;background:#f2f2f2;color:#111;font-weight:600;line-height:1}
.woocommerce-pagination ul.page-numbers li span.current{background:#da0f10;color:#fff}
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover{background:#e6e6e6}


/* ── Megamenu: forceer icoon links + tekst rechts (thema zet de <a> op block) ── */
.scp-mega .scp-mega__kaart{display:flex !important;flex-direction:row;align-items:center;gap:14px}
.scp-mega .scp-mega__img{flex:0 0 auto}
.scp-mega .scp-mega__tekst{display:flex !important;flex-direction:column;align-items:flex-start;flex:1 1 auto;min-width:0}
.scp-mega .scp-mega__titel,.scp-mega .scp-mega__zin{display:block;width:100%}

/* ── Betaaliconen zonder border ── */
.scp-betaal li{border:0 !important}

/* ── Footer: 5 betaaliconen op één rij ── */
.scp-footer .scp-betaal{flex-wrap:nowrap;gap:6px}
.scp-footer .scp-betaal li{height:26px;padding:0 6px}
.scp-footer .scp-betaal li svg{height:15px}
.scp-footer .scp-betaal__postnl svg{height:20px}


/* ── Categoriekaart hover: levertijd + acties uitlijnen met titel/prijs, en bovenhoeken van de afbeelding gelijk afronden (fix 2026-07-23) ── */
.scp-product-kaart .scp-product-kaart__voorraad,
.scp-product-kaart .scp-product-kaart__acties{padding-left:1.1rem !important;padding-right:1.1rem !important;box-sizing:border-box}
.scp-product-kaart .scp-product-kaart__media{border-top-left-radius:12px;border-top-right-radius:12px;overflow:hidden}

/* Levertijd: evenveel witruimte onder als boven (fix 2026-07-23) */
.scp-product-kaart .scp-product-kaart__voorraad{margin-bottom:0.4rem}

/* ===== UI-fixes 2026-07-23 (ronde 3) ===== */
/* #6 Eigenschappen-waarden niet cursief */
.woocommerce-product-attributes-item__value, table.shop_attributes td{font-style:normal !important}
/* #5 Header Actie-knop: rode tekst bij hover (voorkomt wit-op-wit) */
.is-actie:hover, .is-actie:focus{color:#da0f10 !important}
/* Mobiel (max-width 960px) */
@media (max-width:960px){
  /* #3 Eigenschappen-tabel 50/50 */
  table.shop_attributes{table-layout:fixed;width:100%}
  table.shop_attributes th, table.shop_attributes td,
  .woocommerce-product-attributes-item__label, .woocommerce-product-attributes-item__value{width:50% !important}
  /* #2 'In winkelwagen'-tekst verbergen, winkelwagen-icoon tonen */
  .single_add_to_cart_button{font-size:0 !important;min-width:0 !important;white-space:nowrap}
  .single_add_to_cart_button::before{content:"\f07a" !important;font-family:"Font Awesome 6 Free" !important;font-weight:900 !important;font-size:1.15rem !important;display:inline-block;line-height:1}
  /* #1 Lijstweergave: afbeelding niet laten overlopen */
  .scp-product-kaart__media, .scp-product-kaart__media img{max-width:100% !important;height:auto}
}

/* ===== Fix ronde 3b (2026-07-23) ===== */
/* Transparante productafbeeldingen op wit i.p.v. crème (#FDF3DD) */
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a{background-color:#fff !important}
/* Eigenschappen op mobiel: 2-koloms sectie-grid stapelen zodat de tabel 100% breed binnen de container staat */
@media (max-width:960px){
  .scp-product__secties{grid-template-columns:1fr !important}
  table.shop_attributes{width:100% !important;table-layout:fixed}
  table.shop_attributes th, table.shop_attributes td,
  .woocommerce-product-attributes-item__label, .woocommerce-product-attributes-item__value{width:50% !important;text-align:left !important}
  .woocommerce-product-attributes-item__label, table.shop_attributes th{font-weight:700 !important}
  .woocommerce-product-attributes-item__value, table.shop_attributes td{font-weight:400 !important}
}

/* ===== Fix ronde 3c (2026-07-23) — eigenschappen mobiel: label links / waarde rechts (niet stapelen) ===== */
@media (max-width:960px){
  table.shop_attributes, table.woocommerce-product-attributes{display:table !important;width:100% !important;table-layout:fixed !important}
  table.shop_attributes tbody, table.woocommerce-product-attributes tbody{display:table-row-group !important}
  table.shop_attributes tr, .woocommerce-product-attributes-item{display:table-row !important}
  table.shop_attributes th, .woocommerce-product-attributes-item__label{display:table-cell !important;width:45% !important;text-align:left !important;font-weight:700 !important;vertical-align:top}
  table.shop_attributes td, .woocommerce-product-attributes-item__value{display:table-cell !important;width:55% !important;text-align:left !important;font-weight:400 !important;font-style:normal !important;vertical-align:top}
}
