/*
Theme Name: Nico's Hengelsport WooCommerce
Theme URI: https://www.nicoshengelsport.nl/
Author: ChatGPT
Description: Modern WordPress + WooCommerce thema voor Nico's Hengelsport, inclusief logo en voorbeeldafbeeldingen.
Version: 5.3.0-single-search-sorting
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nicoshengelsport
*/
:root{--navy:#062b50;--navy2:#021b34;--blue:#0d4a82;--sand:#d7b47c;--light:#f6f8fb;--text:#09213d;--muted:#607086;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:#fff}.container{width:min(1450px,94vw);margin:0 auto}.topbar{background:linear-gradient(90deg,var(--navy2),var(--navy));color:#fff;font-size:14px}.topbar .container{display:flex;justify-content:space-between;gap:18px;padding:9px 0;flex-wrap:wrap}.site-header{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06);position:sticky;top:0;z-index:20}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}.logo img{height:80px;width:auto}.menu{display:flex;gap:28px;align-items:center;list-style:none;margin:0;padding:0}.menu a{color:var(--text);text-decoration:none;font-weight:800;text-transform:uppercase;font-size:14px}.header-actions{display:flex;gap:16px;font-size:25px}.hero{min-height:345px;background:linear-gradient(90deg,rgba(3,28,52,.84),rgba(3,28,52,.28)),var(--hero) center/cover no-repeat;color:#fff;display:flex;align-items:center}.hero-content{max-width:610px;padding:55px 0}.eyebrow{text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:clamp(46px,7vw,78px);line-height:.92;margin:12px 0 18px}.hero h1 span{color:#51a9e8}.hero p{font-size:18px;line-height:1.45}.btn{display:inline-flex;align-items:center;gap:10px;border-radius:5px;padding:15px 24px;text-decoration:none;font-weight:900;text-transform:uppercase;font-size:14px}.btn-primary{background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.35)}.btn-sand{background:var(--sand);color:#fff}.hero-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.category-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin-top:-32px;position:relative;z-index:5}.cat-card{min-height:150px;background-size:cover;background-position:center;border:2px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.14);display:flex;align-items:end;text-decoration:none;position:relative;overflow:hidden}.cat-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,20,45,.85),rgba(0,20,45,.15))}.cat-card strong,.cat-card small{position:relative;z-index:1}.cat-card div{padding:16px;width:100%;text-align:center;color:#fff}.cat-card strong{font-size:18px;text-transform:uppercase;display:block}.cat-card small{display:inline-block;background:var(--blue);padding:8px 18px;margin-top:8px;border-radius:3px;font-weight:800;text-transform:uppercase}.content-row{display:grid;grid-template-columns:1.15fr .85fr 1.25fr;gap:16px;margin:16px auto 10px}.panel{border-radius:6px;overflow:hidden;background:var(--navy);color:#fff;min-height:195px;box-shadow:0 6px 18px rgba(4,30,60,.12)}.bait{background:linear-gradient(90deg,var(--navy),rgba(6,43,80,.82)),var(--bait) right center/contain no-repeat}.panel-inner{padding:24px}.checklist{margin:16px 0;padding:0;list-style:none}.checklist li{margin:8px 0}.weather{background:linear-gradient(rgba(5,76,102,.85),rgba(5,76,102,.85)),var(--water) center/cover no-repeat}.weather-temp{font-size:36px;font-weight:900}.weather dl{display:grid;grid-template-columns:1fr auto;gap:10px;border-left:1px solid rgba(255,255,255,.4);padding-left:18px}.catches{background:#fff;color:var(--text);padding:18px;border-left:1px solid #dce5ef}.catch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.catch img{width:100%;height:85px;object-fit:cover;border-radius:4px}.catch strong{display:block;font-size:13px}.footer-main{background:linear-gradient(90deg,var(--navy2),var(--navy));color:#fff;margin-top:10px;padding:26px 0}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr;gap:32px}.footer-grid h3{font-size:15px;text-transform:uppercase}.footer-grid a{color:#fff}.map-img{width:100%;height:70px;object-fit:cover;border-radius:4px}.woocommerce ul.products li.product .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--navy);color:#fff;border-radius:4px}.woocommerce span.onsale{background:var(--sand)}@media(max-width:1000px){.category-grid{grid-template-columns:repeat(4,1fr)}.content-row,.footer-grid{grid-template-columns:1fr}.menu{display:none}.hero{min-height:420px}.catch-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.category-grid{grid-template-columns:1fr}.logo img{height:58px}.topbar .container{display:block}.hero h1{font-size:46px}.header-actions{font-size:20px}}


/* Openingstijden netjes uitlijnen */
.opening-hours{
    list-style:none;
    margin:0;
    padding:0;
}
.opening-hours li{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:6px 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
    font-size:15px;
}
.opening-hours li span{
    opacity:.9;
}
.opening-hours li strong{
    font-weight:600;
    white-space:nowrap;
}


.footer-address{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    line-height:1.5;
}
.footer-address span{
    display:block;
}


/* Live visweer widget */
.live-weather iframe{
    border:none;
    border-radius:14px;
    overflow:hidden;
    width:100%;
    background:#fff;
}

.weather-location{
    margin-bottom:16px;
    opacity:.8;
}

.weather-buttons{
    margin-top:16px;
}

.live-weather .panel-inner{
    padding:24px;
}


/* Nieuwe WooCommerce webshop layout */
.shop-page{background:#f4f7f6}
.shop-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,rgba(5,32,48,.96),rgba(8,85,91,.88)),url('assets/images/hero.jpg') center/cover no-repeat;color:#fff;padding:70px 0 56px}
.shop-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:34px;align-items:end}
.shop-eyebrow{display:inline-flex;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.13);color:#ffe2aa;font-weight:700;letter-spacing:.02em;margin-bottom:14px}
.shop-hero h1{font-size:clamp(34px,5vw,62px);line-height:1;margin:0 0 16px}
.shop-hero p{max-width:720px;font-size:18px;line-height:1.7;opacity:.94}
.shop-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.shop-hero-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.2);backdrop-filter:blur(10px)}
.shop-hero-card strong{display:block;color:#ffe2aa;font-size:20px;margin-bottom:12px}
.shop-hero-card span,.shop-hero-card small{display:block;line-height:1.6}
.shop-hero-card small{margin-top:12px;opacity:.8}
.shop-category-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin-top:-30px;position:relative;z-index:2}
.shop-category-card{background:#fff;border-radius:20px;padding:20px 16px;text-align:center;color:#052030;text-decoration:none;box-shadow:0 14px 35px rgba(5,32,48,.1);border:1px solid rgba(5,32,48,.08);transition:.2s ease}
.shop-category-card:hover{transform:translateY(-4px);box-shadow:0 22px 45px rgba(5,32,48,.16)}
.shop-category-card span{display:block;font-size:30px;margin-bottom:8px}
.shop-category-card strong{display:block;font-size:15px}
.shop-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px;padding-top:42px;padding-bottom:70px}
.shop-sidebar{display:flex;flex-direction:column;gap:18px}
.shop-widget{background:#fff;border-radius:22px;padding:22px;box-shadow:0 12px 30px rgba(5,32,48,.08);border:1px solid rgba(5,32,48,.07)}
.shop-widget h2{font-size:20px;margin:0 0 15px;color:#052030}
.shop-widget ul{list-style:none;margin:0;padding:0}
.shop-widget li{border-bottom:1px solid rgba(5,32,48,.08)}
.shop-widget li:last-child{border-bottom:0}
.shop-widget a{display:flex;justify-content:space-between;color:#173d48;text-decoration:none;padding:10px 0;font-weight:650}
.shop-help{background:#052030;color:#fff}
.shop-help h2{color:#ffe2aa}
.shop-help p{line-height:1.6;opacity:.9}
.shop-toolbar{background:#fff;border-radius:18px;padding:14px 18px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:15px;box-shadow:0 10px 25px rgba(5,32,48,.07)}
.shop-toolbar .woocommerce-result-count,.shop-toolbar p{margin:0}
.shop-toolbar select{border:1px solid rgba(5,32,48,.16);border-radius:12px;padding:10px 36px 10px 12px;background:#fff}
.shop-content ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0!important;padding:0!important}
.shop-content ul.products li.product{width:auto!important;margin:0!important;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(5,32,48,.08);border:1px solid rgba(5,32,48,.07);transition:.2s ease;display:flex;flex-direction:column;min-height:100%}
.shop-content ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(5,32,48,.14)}
.shop-content ul.products li.product a.woocommerce-LoopProduct-link{color:#052030;text-decoration:none;display:block}
.shop-content ul.products li.product img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#eef3f2;margin:0!important}
.shop-content .woocommerce-loop-product__title{font-size:17px!important;line-height:1.35;padding:16px 18px 8px!important;color:#052030;min-height:62px}
.shop-content ul.products li.product .price{display:block;padding:0 18px 14px;color:#0b7a75!important;font-weight:800;font-size:18px}
.shop-content ul.products li.product .button{margin:0 18px 18px!important;border-radius:999px;background:#0b7a75;color:#fff;text-align:center;padding:12px 16px;font-weight:800;text-decoration:none}
.shop-content ul.products li.product .button:hover{filter:brightness(.95)}
.shop-content .woocommerce-pagination{margin-top:34px}
.shop-content .woocommerce-pagination ul{border:0!important;display:flex;justify-content:center;gap:8px}
.shop-content .woocommerce-pagination li{border:0!important}
.shop-content .woocommerce-pagination a,.shop-content .woocommerce-pagination span{border-radius:12px;background:#fff;color:#052030;padding:10px 14px!important;box-shadow:0 8px 18px rgba(5,32,48,.08)}
.shop-content .woocommerce-pagination .current{background:#0b7a75;color:#fff}
@media(max-width:980px){.shop-hero-inner,.shop-layout{grid-template-columns:1fr}.shop-category-strip{grid-template-columns:repeat(3,1fr)}.shop-sidebar{order:2}.shop-content{order:1}}
@media(max-width:720px){.shop-hero{padding:46px 0 42px}.shop-category-strip,.shop-content ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-toolbar{align-items:flex-start;flex-direction:column}.shop-content .woocommerce-loop-product__title{font-size:15px!important;min-height:auto}}
@media(max-width:460px){.shop-category-strip,.shop-content ul.products{grid-template-columns:1fr}}


/* Footer adres en openingstijden definitieve fix */
.footer-address{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    line-height:1.5;
}
.opening-hours{
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}
.opening-hours li{
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    gap:18px !important;
    padding:6px 0 !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
}
.opening-hours span{
    display:block !important;
}
.opening-hours strong{
    white-space:nowrap !important;
    font-weight:700 !important;
}


/* Volledige menu/footer herstel */
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.logo img{
    max-height:72px;
    width:auto;
}
.main-navigation{
    flex:1;
}
.main-navigation .menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    list-style:none;
    margin:0;
    padding:0;
}
.main-navigation .menu li{
    margin:0;
}
.main-navigation .menu a{
    display:block;
    text-decoration:none;
    font-weight:700;
}
.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}
.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:0;
    background:transparent;
    cursor:pointer;
    padding:8px;
}
.menu-toggle span{
    display:block;
    height:3px;
    margin:5px 0;
    border-radius:3px;
    background:currentColor;
}
.footer-address{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    line-height:1.5;
}
.opening-hours{
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}
.opening-hours li{
    display:flex !important;
    justify-content:space-between !important;
    gap:18px !important;
    padding:6px 0 !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
}
.opening-hours strong{
    white-space:nowrap !important;
}
@media(max-width:900px){
    .menu-toggle{
        display:block;
        order:3;
    }
    .main-navigation{
        position:absolute;
        left:0;
        right:0;
        top:100%;
        display:none;
        background:#052030;
        padding:16px 20px;
        box-shadow:0 20px 40px rgba(0,0,0,.22);
    }
    .main-navigation.is-open{
        display:block;
    }
    .main-navigation .menu{
        flex-direction:column;
        align-items:flex-start;
        gap:0;
    }
    .main-navigation .menu a{
        padding:12px 0;
        color:#fff;
    }
    .header-actions{
        margin-left:auto;
    }
}


/* Zelfde categorie-tegels op webshop en categoriepagina's als op homepage */
.shop-category-grid{
    margin-top:-32px;
    margin-bottom:32px;
    position:relative;
    z-index:6;
}
.shop-category-grid .cat-card{
    min-height:150px;
}
@media(max-width:1000px){
    .shop-category-grid{grid-template-columns:repeat(4,1fr);margin-top:18px}
}
@media(max-width:620px){
    .shop-category-grid{grid-template-columns:1fr}
}


/* Algemene hero op iedere pagina - twee hengels, zonder ingebakken dubbele tekst */
.nicos-global-hero{
    width:100%;
    background-position:center center;
}
.nicos-global-hero .hero-content{
    position:relative;
    z-index:2;
}
@media(max-width:700px){
    .nicos-global-hero{
        min-height:390px;
        background-position:58% center;
    }
    .nicos-global-hero .hero-content{
        padding:42px 0;
        max-width:92%;
    }
}


/* Subcategorie-tegels: exact dezelfde uitstraling als de hoofdtegels */
.nicos-subcategory-section{
    margin-top:28px;
    margin-bottom:22px;
}
.nicos-subcategory-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
}
.nicos-subcategory-heading h2{
    margin:0;
    font-size:28px;
    color:var(--text);
}
.nicos-subcategory-heading p{
    margin:0;
    color:var(--muted);
    font-weight:700;
}
.nicos-subcategory-grid{
    margin-top:0;
    grid-template-columns:repeat(4,1fr);
}
.nicos-subcategory-grid .cat-card{
    min-height:175px;
}
@media(max-width:1000px){
    .nicos-subcategory-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:620px){
    .nicos-subcategory-grid{grid-template-columns:1fr;}
    .nicos-subcategory-heading{display:block;}
    .nicos-subcategory-heading p{margin-top:4px;}
}


/* Mobiel: hoofdcategorieën compact, zodat subcategorieën direct zichtbaar zijn */
@media(max-width:620px){
  body.tax-product_cat .shop-category-grid{
    display:flex !important;
    overflow-x:auto;
    gap:7px;
    margin:10px auto 12px;
    padding:0 0 6px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  body.tax-product_cat .shop-category-grid .cat-card{
    flex:0 0 104px;
    min-height:72px !important;
    height:72px;
    scroll-snap-align:start;
    border-width:1px;
    border-radius:5px;
  }
  body.tax-product_cat .shop-category-grid .cat-card div{padding:7px 4px;}
  body.tax-product_cat .shop-category-grid .cat-card strong{
    font-size:11px;
    line-height:1.05;
  }
  body.tax-product_cat .shop-category-grid .cat-card small{
    display:none;
  }
  body.tax-product_cat .nicos-subcategory-section{
    margin-top:8px;
  }
  body.tax-product_cat .nicos-subcategory-heading{
    margin-bottom:10px;
  }
  body.tax-product_cat .nicos-subcategory-heading h2{
    font-size:24px;
  }
  body.tax-product_cat .nicos-subcategory-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px;
  }
  body.tax-product_cat .nicos-subcategory-grid .cat-card{
    min-height:155px !important;
    border-radius:5px;
    background-position:center;
  }
  body.tax-product_cat .nicos-subcategory-grid .cat-card div{padding:10px 5px;}
  body.tax-product_cat .nicos-subcategory-grid .cat-card strong{
    font-size:14px;
    line-height:1.1;
  }
  body.tax-product_cat .nicos-subcategory-grid .cat-card small{
    font-size:10px;
    padding:7px 8px;
  }
}


/* FIX 4.5: compact hoofdcategoriemenu op ELKE productcategorie en subcategorie */
@media(max-width:760px){
  .shop-category-grid.nicos-compact-main-cats{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    width:min(100%,94vw);
    gap:5px !important;
    margin:8px auto 8px !important;
    padding:0 0 4px !important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .shop-category-grid.nicos-compact-main-cats::-webkit-scrollbar{display:none;}
  .shop-category-grid.nicos-compact-main-cats .cat-card{
    flex:0 0 82px !important;
    width:82px !important;
    min-width:82px !important;
    height:52px !important;
    min-height:52px !important;
    border:1px solid #fff !important;
    border-radius:4px !important;
    box-shadow:0 2px 6px rgba(0,0,0,.10) !important;
  }
  .shop-category-grid.nicos-compact-main-cats .cat-card div{
    padding:4px 2px !important;
  }
  .shop-category-grid.nicos-compact-main-cats .cat-card strong{
    font-size:9px !important;
    line-height:1 !important;
    white-space:nowrap;
  }
  .shop-category-grid.nicos-compact-main-cats .cat-card small{
    display:none !important;
  }

  .nicos-force-subcats-visible{
    margin-top:6px !important;
    padding-top:0 !important;
  }
  .nicos-force-subcats-visible .nicos-subcategory-heading{
    margin:0 0 8px !important;
  }
  .nicos-force-subcats-visible .nicos-subcategory-heading h2{
    font-size:22px !important;
    margin:0 !important;
  }
  .nicos-force-subcats-visible .nicos-subcategory-heading p{
    font-size:12px !important;
    margin-top:2px !important;
  }
  .nicos-force-subcats-visible .nicos-subcategory-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    margin-top:0 !important;
  }
  .nicos-force-subcats-visible .nicos-subcategory-grid .cat-card{
    min-height:150px !important;
    height:150px !important;
    background-size:cover !important;
    background-position:center !important;
  }
}

/* Op zeer kleine telefoons blijft het hoofdmenu één compacte horizontale rij. */
@media(max-width:430px){
  .shop-category-grid.nicos-compact-main-cats .cat-card{
    flex-basis:76px !important;
    width:76px !important;
    min-width:76px !important;
    height:48px !important;
    min-height:48px !important;
  }
}


/* FIX 4.8: na klikken op een subcategorie wordt ook de subcategorierij compact.
   Daardoor staan de producten direct onder het navigatiemenu in beeld. */
@media(max-width:760px){
  .nicos-subcategory-section.nicos-compact-subcats{
    margin:5px auto 8px !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading{
    margin:0 0 5px !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading h2{
    font-size:17px !important;
    line-height:1.1 !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading p{
    display:none !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid{
    display:flex !important;
    grid-template-columns:none !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:5px !important;
    margin:0 !important;
    padding:0 0 4px !important;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid::-webkit-scrollbar{
    display:none;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card{
    flex:0 0 105px !important;
    width:105px !important;
    min-width:105px !important;
    height:66px !important;
    min-height:66px !important;
    border:1px solid #fff !important;
    border-radius:4px !important;
    box-shadow:0 2px 6px rgba(0,0,0,.10) !important;
    scroll-snap-align:start;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card div{
    padding:5px 3px !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card strong{
    font-size:10px !important;
    line-height:1.05 !important;
  }

  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card small{
    display:none !important;
  }
}

@media(max-width:430px){
  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card{
    flex-basis:92px !important;
    width:92px !important;
    min-width:92px !important;
    height:60px !important;
    min-height:60px !important;
  }
}


/* FIX 4.9: compacte subcategorierij op ALLE apparaten zodra een subcategorie is geopend */
.nicos-subcategory-section.nicos-compact-subcats{
  margin:8px auto 12px !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading{
  margin:0 0 6px !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading h2{
  font-size:18px !important;
  line-height:1.1 !important;
  margin:0 !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-heading p{
  display:none !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid{
  display:flex !important;
  grid-template-columns:none !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  gap:7px !important;
  margin:0 !important;
  padding:0 0 5px !important;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid::-webkit-scrollbar{
  display:none;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card{
  flex:0 0 132px !important;
  width:132px !important;
  min-width:132px !important;
  height:78px !important;
  min-height:78px !important;
  border:1px solid #fff !important;
  border-radius:4px !important;
  box-shadow:0 2px 7px rgba(0,0,0,.10) !important;
  scroll-snap-align:start;
  background-size:cover !important;
  background-position:center !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card div{
  padding:6px 4px !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card strong{
  font-size:11px !important;
  line-height:1.05 !important;
}
.nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card small{
  display:none !important;
}

/* Tablet */
@media(max-width:1000px){
  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card{
    flex-basis:112px !important;
    width:112px !important;
    min-width:112px !important;
    height:70px !important;
    min-height:70px !important;
  }
}

/* Telefoon */
@media(max-width:620px){
  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card{
    flex-basis:92px !important;
    width:92px !important;
    min-width:92px !important;
    height:60px !important;
    min-height:60px !important;
  }
  .nicos-subcategory-section.nicos-compact-subcats .nicos-subcategory-grid .cat-card strong{
    font-size:9px !important;
  }
}


/* Mobiele productzoekbalk */
.nicos-mobile-search{
  display:none;
  background:#fff;
  border-top:1px solid #e4eaf0;
  border-bottom:1px solid #dce5ef;
  padding:9px 3vw;
  position:relative;
  z-index:19;
}
.nicos-product-search{
  display:flex;
  width:min(100%,720px);
  margin:0 auto;
  background:#fff;
  border:2px solid var(--navy);
  border-radius:7px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(2,27,52,.08);
}
.nicos-search-field{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  padding:12px 13px;
  font-size:16px;
  color:var(--text);
  background:#fff;
  -webkit-appearance:none;
}
.nicos-search-field::placeholder{
  color:#718096;
}
.nicos-search-submit{
  flex:0 0 auto;
  border:0;
  background:var(--navy);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  padding:0 16px;
  cursor:pointer;
  font-size:13px;
}
.nicos-search-submit:active{
  transform:translateY(1px);
}

@media(max-width:760px){
  .nicos-mobile-search{
    display:block;
  }
  .site-header{
    position:sticky;
    top:0;
  }
  .nicos-product-search{
    min-height:46px;
  }
}

@media(max-width:430px){
  .nicos-mobile-search{
    padding:7px 10px;
  }
  .nicos-search-field{
    font-size:16px;
    padding:11px 10px;
  }
  .nicos-search-submit{
    padding:0 12px;
    font-size:12px;
  }
}


/* FIX 5.1: productzoekfunctie zichtbaar op ALLE apparaten */
.nicos-mobile-search{
  display:block !important;
  background:#fff;
  border-top:1px solid #e4eaf0;
  border-bottom:1px solid #dce5ef;
  padding:10px 20px;
  position:relative;
  z-index:19;
}

.nicos-product-search{
  display:flex !important;
  width:min(100%,820px);
  margin:0 auto;
  background:#fff;
  border:2px solid var(--navy);
  border-radius:7px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(2,27,52,.08);
  min-height:46px;
}

.nicos-search-field{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  padding:12px 15px;
  font-size:16px;
}

.nicos-search-submit{
  flex:0 0 auto;
  padding:0 20px;
  font-size:13px;
}

/* Tablet */
@media(max-width:1000px){
  .nicos-mobile-search{
    padding:9px 16px;
  }
  .nicos-product-search{
    width:min(100%,700px);
  }
}

/* Telefoon */
@media(max-width:760px){
  .nicos-mobile-search{
    display:block !important;
    padding:8px 10px;
  }
  .nicos-product-search{
    width:100%;
  }
  .nicos-search-submit{
    padding:0 14px;
    font-size:12px;
  }
}

@media(max-width:430px){
  .nicos-search-field{
    padding:11px 10px;
  }
  .nicos-search-submit{
    padding:0 11px;
  }
}


/* 5.2 Zoekresultaten eerst: op zoekpagina pas daarna hero en categorie-menu */
.search .site-main,
.search .woocommerce{
  padding-top:12px;
}

.nicos-search-after-results{
  margin-top:28px;
}

.nicos-search-after-hero{
  margin-top:10px;
}

.nicos-search-after-menu{
  padding-top:22px;
  padding-bottom:24px;
}

.nicos-search-after-menu > h2{
  margin:0 0 12px;
  font-size:24px;
}

@media(max-width:760px){
  .search .site-main,
  .search .woocommerce{
    padding-top:6px;
  }

  .nicos-search-after-results{
    margin-top:18px;
  }

  .nicos-search-after-hero{
    min-height:180px !important;
  }

  .nicos-search-after-hero .hero-content{
    padding-top:24px !important;
    padding-bottom:24px !important;
  }

  .nicos-search-after-menu{
    padding-top:14px;
  }

  .nicos-search-after-menu > h2{
    font-size:19px;
  }

  .nicos-search-after-menu .shop-category-grid{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
    overflow-x:auto !important;
    padding-bottom:5px !important;
    scrollbar-width:none;
  }

  .nicos-search-after-menu .shop-category-grid::-webkit-scrollbar{
    display:none;
  }

  .nicos-search-after-menu .cat-card{
    flex:0 0 92px !important;
    width:92px !important;
    min-width:92px !important;
    height:60px !important;
    min-height:60px !important;
  }

  .nicos-search-after-menu .cat-card strong{
    font-size:9px !important;
  }
}


/* Zoekpagina: geen zijmenu vóór resultaten; resultaten gebruiken volle breedte */
.search .shop-layout{
  display:block !important;
}
.search .nicos-search-results-content{
  width:100% !important;
  max-width:none !important;
}
.search .nicos-search-results-content .products{
  width:100% !important;
}


/* 5.3 Zoekresultaten: slechts één sorteerkeuze tonen */
.search .nicos-search-results-content > .woocommerce-result-count,
.search .nicos-search-results-content > .woocommerce-ordering{
  display:none !important;
}
