/* Homepage sections (docs/home/home-page.md). Palette follows the coach banner on the same page. */

/* Hero: popular searches + trust line */
/* app.css gives the hero a fixed 300px height and centres the search absolutely. Chips and the trust line
   now live in the search wrapper, so the hero uses normal flow on the homepage instead. */
.c-searchHome.js-autocompleteHome {
    height: auto;
    padding-bottom: 8px;
}
.c-searchHome.js-autocompleteHome .c-searchHome-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 36px auto 0;
}
.home-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
    max-width: 760px;
    padding: 0 15px;
}
.home-chips__label {
    align-self: center;
    color: #52617a;
    font-size: 14px;
    font-weight: 600;
    margin-right: 2px;
}
.home-chip {
    background: #fff;
    border: 1px solid #d9e3f0;
    border-radius: 999px;
    color: #1f2a44;
    font-size: 14px;
    line-height: 1;
    padding: 9px 14px;
    transition: border-color .15s, color .15s, box-shadow .15s;
}
.home-chip:hover {
    border-color: #377dff;
    box-shadow: 0 4px 14px rgba(55, 125, 255, .12);
    color: #377dff;
    text-decoration: none;
}
.home-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 18px 0 0;
    padding: 0 15px;
    color: #52617a;
    font-size: 14px;
    list-style: none;
}
.home-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-trust strong {
    color: #111827;
}
.home-trust__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00a36c;
    box-shadow: 0 0 0 3px rgba(0, 163, 108, .15);
}

/* Shared section spacing */
.home-section {
    margin: 56px auto;
}
.home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 15px;
}
.home-section__head h2 {
    margin: 0;
}
.home-section__more {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Category tiles */
.home-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 15px;
}
.home-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #d9e3f0;
    border-radius: 14px;
    color: #111827;
    padding: 16px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-cat:hover {
    border-color: #377dff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
    color: #111827;
    text-decoration: none;
    transform: translateY(-2px);
}
.home-cat__iconwrap {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: 12px;
    background: #eef4ff;
    color: #377dff;
}
.home-cat:nth-child(even) .home-cat__iconwrap {
    background: #fff1ed;
    color: #ff5c3a;
}
.home-cat__icon {
    width: 30px;
    height: 30px;
}
.home-cat__name {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}
.home-cat__count {
    display: block;
    color: #52617a;
    font-size: 13px;
    margin-top: 2px;
}

/* Kako radi */
.home-how {
    margin: 64px auto;
}
.home-how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    counter-reset: none;
}
.home-how__step {
    position: relative;
    background: #f4f7fb;
    border: 1px solid #d9e3f0;
    border-radius: 18px;
    padding: 22px;
}
.home-how__art {
    position: relative;
    height: 150px;
    margin-bottom: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .07);
    overflow: hidden;
}
.home-how__num {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff5c3a;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.home-how__title {
    margin: 10px 0 6px;
    color: #111827;
    font-size: 19px;
    font-weight: 800;
}
.home-how__text {
    margin: 0;
    color: #52617a;
    font-size: 15px;
    line-height: 1.6;
}

/* Step 1 art */
.home-how__search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #377dff;
    border-radius: 999px;
    color: #377dff;
    padding: 7px 12px;
    font-size: 14px;
}
.home-how__search span {
    color: #111827;
}
.home-how__caret {
    width: 2px;
    height: 16px;
    margin-left: -6px;
    background: #111827;
    animation: home-blink 1s steps(1) infinite;
}
@keyframes home-blink { 50% { opacity: 0; } }
.home-how__result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.home-how__result--faded {
    opacity: .45;
}
.home-how__thumb {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dce8ff, #fbe1da);
}
.home-how__lines {
    display: grid;
    gap: 6px;
    width: 100%;
}
.home-how__lines b {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #e3eaf4;
}
.home-how__lines b + b {
    width: 55%;
}

/* Step 2 art */
.home-how__shop {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #52617a;
    font-size: 13px;
}
.home-how__shop i {
    height: 10px;
    border-radius: 5px;
    background: #d9e3f0;
}
.home-how__shop strong {
    color: #111827;
    font-size: 13px;
}
.home-how__shop--best i {
    background: #00a36c;
}
.home-how__shop--best strong {
    color: #00a36c;
}
.home-how__badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    border-radius: 999px;
    background: #e6f7f0;
    color: #00865a;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

/* Step 3 art */
.home-how__chart {
    width: 100%;
    height: 80px;
}
.home-how__alert {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .22);
}

/* Popular brands */
.home-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px;
}
.home-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: #fff;
    border: 1px solid #d9e3f0;
    border-radius: 12px;
    color: #111827;
    font-weight: 700;
    padding: 12px 16px;
    transition: border-color .15s, box-shadow .15s;
}
.home-brand:hover {
    border-color: #377dff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
    color: #111827;
    text-decoration: none;
}
.home-brand small {
    color: #52617a;
    font-weight: 500;
}

@media (max-width: 991px) {
    .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-how__steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .home-cats { gap: 10px; }
    .home-cat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .home-section { margin: 40px auto; }
}

@media (max-width: 764px) {
    .c-searchHome.js-autocompleteHome .c-searchHome-wrapper { margin-top: 20px; }
    .home-chips__label { width: 100%; text-align: center; }
}
