/* Zorg dat alles binnen het scherm blijft */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.hero {
    text-align: center;
    padding: 80px 20px 0;
    background: linear-gradient(135deg, #e8f8ec, #f4fef7);
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    animation: fadeIn 1s ease;
}

.hero p,
.hero h2 {
    font-size: 1.2rem;
    color: #555;
    margin: 16px 0;
    animation: fadeIn 1.2s ease;
}

.hero h2 {
    font-weight: 400;
}

.search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-form .search-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #888;
    align-self: center;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 6px;
    min-width: 0;
    background-color: transparent;
}

.search-form input[type="submit"] {
    background-color: #2ecc40;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-form input[type="submit"]:hover {
    background-color: #27ae35;
}

.steps-section {
    background-color: #f9fdfb;
    padding: 80px 20px;
    text-align: center;
}

.steps-section h3 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    animation: fadeIn 1s ease;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.step {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    width: 25%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.step img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.step h4 {
    font-size: 1.2rem;
    color: #2ecc40;
    margin-bottom: 10px;
}

.step p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-help {
    font-size: 1rem;
    text-align: center;
    margin-top: 12px;
}

.search-help a {
    color: #2ecc40;
    text-decoration: underline;
    cursor: pointer;
}

.ean-info {
    max-width: 600px;
    margin: 10px auto 40px;
    background: #f0f9f2;
    padding: 15px 20px;
    border-left: 4px solid #2ecc40;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    animation: fadeIn 0.3s ease;
}

/* Stats strip */
.stats-strip {
    background: #f6fbf7;
    border-top: 1px solid #e3efe6;
    border-bottom: 1px solid #e3efe6;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 22px 0;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.stat {
    text-align: center;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #27ae60;
    line-height: 1.1;
}
.stat-label {
    margin-top: 6px;
    font-weight: 600;
    color: #2c3e50;
    opacity: 0.9;
}

/* Logo strip */
.logo-strip {
    background: #fff;
}
.logos-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 0;
}
.logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    filter: grayscale(100%) contrast(95%);
    opacity: 0.85;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
}
.logos li:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}
.logos img {
    max-width: 120px;
    height: auto;
}

/* ------- Logo strip improvements ------- */
.logos-header {
    display: grid;
    gap: 6px;
    margin-bottom: 6px;
}

h3.logos-title {
    font-size: 1.25rem;
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.badge-inline {
    background: #e6f9e6;
    color: #27ae60;
    border: 1px solid #ccefd0;
    border-radius: 9999px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.6;
    user-select: none;
}

.logos-sub {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
}

.logo-figure {
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .stats-inner { grid-template-columns: 1fr 1fr 1fr; }
    .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ✅ Verbeterde mobiele layout */
@media (max-width: 600px) {
    .hero {
        padding: 60px 15px 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero p,
    .hero h2 {
        font-size: 1rem;
        margin: 0 0 24px;
    }

    .search-form .search-group {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
        gap: 12px;
    }

    .search-icon {
        display: none; /* weghalen op mobiel voor cleaner look */
    }

    .search-form input[type="text"],
    .search-form input[type="submit"] {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }

    .steps-section {
        padding: 60px 15px;
    }

    .steps-section h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step {
        width: 100%;
        max-width: 95%;
        padding: 24px 16px;
    }

    .step h4 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.9rem;
    }

    .stats-inner { grid-template-columns: 1fr; gap: 10px; }
    .stat-number { font-size: 1.6rem; }
    .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

    h3.logos-title { font-size: 1.1rem; }
    .logos-sub { font-size: 0.9rem; }
    .logos-inner { margin: 0 20px }
}

/* Mini-hints onder de zoekbalk (compacte witte blokjes) */
.mini-hints{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 640px;          /* sluit aan op jouw 600px search, iets ruimer */
    margin: 10px auto 0;       /* net onder de balk */
}
.mini-hint{
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
}
.mini-hint-icon svg{ display:block; width:22px; height:22px; }
.mini-hint strong{
    color: #2c3e50;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
}

/* Mobiel: stacken en iets meer tappable */
@media (max-width: 600px){
    .mini-hints{
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 4px;
    }
    .mini-hint{ padding: 10px 12px; }
}

/* Hero: iets compacter én spacing naar stats-strip */
.hero {
    padding: 16px 20px 32px; /* was 80 20 0 */
}
.hero h1 { margin-bottom: 10px; }
.hero p,
.hero h2 { margin: 18px 0; }

/* Zoekbalk: kleine visuele upgrade + ruimte eronder */
.search-form { max-width: 640px; }           /* subtiel breder dan 600 */
.search-form .search-group {
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
    border: 1px solid rgba(39,174,96,.16);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.search-form .search-group:focus-within{
    border-color: rgba(39,174,96,.32);
    box-shadow: 0 12px 28px rgba(0,0,0,.10), 0 0 0 4px rgba(39,174,96,.10);
}
.search-form { margin-bottom: 8px; }         /* ruimte boven de caption */

/* Caption boven de drie blokjes */
.mini-hints-caption{
    margin: 6px 0 6px;
    font-size: .95rem;
    color: #4b5563;
}

/* Mini-hints: compacter, duidelijker */
.mini-hints{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 4px;        /* klein beetje ruimte onder de grid */
}
.mini-hint{
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
}
.mini-hint-icon svg{ display:block; width:22px; height:22px; }
.mini-hint-text { line-height: 1.2; text-align: left; }
.mini-hint-text strong{
    display:block;
    color: #2c3e50;
    font-size: .95rem;
    font-weight: 800;
}
.mini-hint-sub{
    display:block;
    font-size: .82rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Mobiel: stacken, lucht en goede tappability */
@media (max-width: 600px){
    .hero { padding: 7px 15px 24px; }
    .search-form { max-width: 100%; }
    .mini-hints{
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 4px;
        gap: 8px;
    }
    .mini-hint{ padding: 12px 14px; }
}

.featured-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0 0 10px;
    text-align: center;
}

.hero .container { max-width: 1040px; margin-inline: auto; }
.hero-eyebrow {
    display: inline-flex;
    margin: 0 0 4px !important;
    padding: 5px 12px;
    border: 1px solid #bde7c7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #18783c !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-strip { padding-inline: 20px; }

@media (max-width: 600px) {
    .hero-eyebrow { font-size: 0.7rem !important; }
    .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); line-height: 1.08; }
    .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-number { font-size: 1.25rem; }
    .stat-label { font-size: 0.75rem; line-height: 1.3; }
}

/* Beste deals van vandaag */
.premium-deals {
    padding: 30px 20px;
    background:
        radial-gradient(circle at 8% 10%, rgba(46, 204, 64, 0.13), transparent 26rem),
        #17352a;
    color: #fff;
}

.premium-shell {
    width: min(1240px, 100%);
    margin-inline: auto;
}

.premium-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 32px;
    margin-bottom: 28px;
}

.premium-heading h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.premium-heading > p {
    max-width: 510px;
    margin: 0;
    color: #cce0d5;
    font-size: 1rem;
}

.premium-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #6ee787;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(110, 231, 135, 0.14);
}

.premium-deal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-deal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.25);
}

.premium-deal-card > a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    color: #25352f;
    text-decoration: none;
}

.premium-deal-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f8f6;
}

.premium-deal-card__media img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.premium-deal-card:hover .premium-deal-card__media img { transform: scale(1.04); }

.premium-deal-card__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e5483f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
    box-shadow: 0 5px 14px rgba(179, 39, 34, 0.28);
}

.premium-deal-card__fallback {
    display: none;
    color: #718078;
    font-weight: 700;
}

.premium-deal-card__media.is-fallback .premium-deal-card__fallback { display: block; }

.premium-deal-card__body {
    display: flex;
    flex-direction: column;
    padding: 17px;
}

.premium-deal-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    color: #4d6a5d;
    font-size: 0.73rem;
    font-weight: 750;
}

.premium-deal-card__meta span:last-child {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f8ec;
    color: #18783c;
}

.premium-deal-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0;
    overflow: hidden;
    color: #20382e;
    font-size: 1rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.premium-deal-card__price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 15px;
}

.premium-deal-card__price strong {
    color: #18783c;
    font-size: 1.35rem;
}

.premium-deal-card__price del { color: #7c8983; font-size: 0.88rem; }
.premium-deal-card__sellers { margin: 3px 0 14px; color: #718078; font-size: 0.78rem; }

.premium-deal-card__link {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5ece8;
    color: #18783c;
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .premium-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .premium-deals { padding: 44px 15px; }
    .premium-heading { grid-template-columns: 1fr; gap: 14px; }
    .premium-heading h2 { font-size: 2rem; }
    .premium-heading > p { font-size: 0.92rem; }
    .premium-deal-grid { grid-template-columns: 1fr; }
    .premium-deal-card > a { grid-template-columns: 120px 1fr; grid-template-rows: 1fr; }
    .premium-deal-card__media { aspect-ratio: auto; min-height: 190px; }
    .premium-deal-card__badge { top: 8px; left: 8px; font-size: 0.7rem; }
}
