/* ============================================================================
 * theme-overrides.css — Phase 18 mobile-first polish
 * Additive layer loaded AFTER style.css (the frozen UIkit 3.2.0 blob).
 * Rules here MUST NOT fight the inline per-shop colour <style> in base.html.twig
 * (baseColor / linkColor / linkHoverColor) — no colour declarations on links,
 * navbars or sections. Polish only: touch targets, spacing, typography.
 * Mobile = below UIkit's @m breakpoint (960px), where the offcanvas nav is used.
 * ==========================================================================*/

/* ---- Mobile offcanvas nav: comfortable touch targets + drill-down ---- */
@media (max-width: 959px) {

    /* Top-level + parent rows: full-width, finger-friendly height */
    #nav-offcanvas .uk-nav > li > a {
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    /* Drill-down sub-list (brands / models / types) */
    #nav-offcanvas .uk-nav-sub {
        padding-left: 18px;
    }
    #nav-offcanvas .uk-nav-sub a {
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: .95rem;
        line-height: 1.3;
    }

    /* Parent toggle chevron a touch larger so it's obviously tappable */
    #nav-offcanvas .uk-nav-parent-icon > .uk-parent > a::after {
        width: 16px;
        height: 16px;
    }

    /* Offcanvas header: clearer brand row */
    #nav-offcanvas .uk-card-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* ---- Generic mobile touch targets: header search / cart / hamburger ---- */
@media (max-width: 959px) {
    .tm-navbar-container .uk-navbar-toggle,
    .tm-navbar-container .tm-navbar-button,
    #basket-counter-icon a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ---- Cookie bar: less of a wall on small screens, buttons never crowd ---- */
@media (max-width: 639px) {
    #cookie-warning-bar .uk-padding-small {
        padding: 12px 14px;
    }
    #cookie-warning-bar .uk-button {
        margin: 6px 4px 0;
    }
}

/* ---- Footer: breathing room + tappable links on mobile ---- */
@media (max-width: 959px) {
    footer .uk-nav > li > a,
    footer .uk-list > li > a {
        padding-top: 6px;
        padding-bottom: 6px;
        display: inline-block;
    }
}

/* ---- Mild readability bump for long DE strings on small screens ---- */
@media (max-width: 639px) {
    body {
        line-height: 1.55;
    }
    main h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }
}
