/**
 * RECUPARTS - Homepage extras
 * Hero kenteken search + bestsellers section polish
 */

/* ============================================================
   Hero kenteken search
   ============================================================ */
.hero .hero-search {
    margin: 1.5rem 0 1.75rem;
    max-width: 520px;
}

.hero .hero-kenteken-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(20, 30, 60, 0.08), 0 2px 6px rgba(20, 30, 60, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero .kenteken-input-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: #FFCD00;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #1a3a8a;
    min-width: 0;
}

.hero .kenteken-flag {
    background: linear-gradient(180deg, #1a3a8a, #122a66);
    color: #FFCD00;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.hero .kenteken-flag .kenteken-stars {
    font-size: 0.6rem;
    color: #FFCD00;
    opacity: 0.9;
}

.hero .kenteken-flag .kenteken-country {
    font-size: 0.85rem;
    font-weight: 900;
}

.hero .kenteken-input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 2px;
    outline: none;
    text-transform: uppercase;
    text-align: center;
    font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
}

.hero .kenteken-input-wrap input::placeholder {
    color: rgba(0, 0, 0, 0.32);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
}

.hero .btn-kenteken-search {
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #000 18%));
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(124, 179, 66, 0.35);
}

.hero .btn-kenteken-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 179, 66, 0.45);
    filter: brightness(1.05);
}

.hero .btn-kenteken-search:active {
    transform: translateY(0);
}

.hero .btn-kenteken-search i {
    font-size: 1rem;
}

.hero .hero-search-hint {
    color: color-mix(in srgb, var(--default-color), transparent 35%);
    font-size: 0.85rem;
    margin: 0.6rem 0 0;
    line-height: 1.5;
}

.hero .hero-search-hint i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.hero .hero-search-hint a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
    transition: border-color 0.2s;
}

.hero .hero-search-hint a:hover {
    border-bottom-color: var(--accent-color);
}

/* Tablet & mobile */
@media (max-width: 575.98px) {
    .hero .hero-kenteken-form {
        flex-direction: column;
        padding: 6px;
    }

    .hero .btn-kenteken-search {
        padding: 0.7rem 1.25rem;
        justify-content: center;
        width: 100%;
    }

    .hero .kenteken-input-wrap input {
        font-size: 1.05rem;
        letter-spacing: 1px;
        padding: 0.75rem 0.5rem;
    }

    .hero .hero-search-hint {
        font-size: 0.8rem;
    }
}

/* ============================================================
   Bestsellers section polish
   ============================================================ */

/* Real product photos have varying ratios (narrow trim parts vs. square
   wheels). Override the default square box with a landscape ratio + contain
   so we show the whole part with minimal dead space. */
.best-sellers .product-image {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
}

.best-sellers .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 4px;
    transition: transform 0.3s ease;
}

.best-sellers .product-item:hover .product-image img {
    transform: scale(1.03);
}

/* Card itself: tighter, more modern */
.best-sellers .product-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 30, 60, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
}

.best-sellers .product-item:hover {
    box-shadow: 0 12px 28px rgba(20, 30, 60, 0.10);
    transform: translateY(-4px);
}

.best-sellers .product-info {
    padding: 14px 16px 18px;
}

.best-sellers .product-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.best-sellers .product-name {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.best-sellers .product-name a {
    color: var(--heading-color);
    text-decoration: none;
}

.best-sellers .product-name a:hover {
    color: var(--accent-color);
}

.best-sellers .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 6px;
}

.best-sellers .product-rating {
    margin-bottom: 6px;
}

.best-sellers .product-rating .stars {
    color: #f5a623;
    font-size: 0.85rem;
}

.best-sellers .product-rating .rating-count {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: 4px;
}

.best-sellers .btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.best-sellers .btn-shop:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 179, 66, 0.35);
}

.best-sellers .btn-shop i {
    transition: transform 0.25s ease;
}

.best-sellers .btn-shop:hover i {
    transform: translateX(3px);
}
