/*
 * HighLevel - korpa, checkout, zahvalnica i stranice korisničkog naloga.
 *
 * Nastavak home.css / shop.css: iste varijable (--hl-*), isti prefiks `hl-`.
 * Učitava se poslije shop.css, pa smije pregaziti pojedinosti.
 */

.hl-shop--plain {
    background: var(--hl-soft);
    color: var(--hl-ink);
    padding: 28px 0 70px;
}

.hl-shop--plain .container {
    max-width: 1500px;
}

.hl-page-title {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hl-ink);
}


/*
 * Dvostupčani raspored korpe/checkouta je .hl-co-form (vidi dio "Checkout po uzoru na
 * lifeshop.test"). Ovdje je nekad stajalo `.hl-co { display: grid }`, a `.hl-co` je sada
 * klasa cijele stranice - zbog toga je .container postajao grid stavka široka ~1170 px
 * umjesto 1500 px i lijepio se uz lijevu ivicu.
 */

.hl-panel {
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    padding: 24px;
}

.hl-panel + .hl-panel { margin-top: 20px; }

.hl-panel__title {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hl-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-panel__title:before {
    content: "";
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: var(--hl-ink);
}

.hl-panel__note {
    margin: -8px 0 18px;
    font-size: 13px;
    color: var(--hl-muted);
}

/* ---------------------------------------------------------- Stavke korpe */

.hl-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hl-line);
    align-items: center;
}

.hl-line:first-of-type { padding-top: 0; }
.hl-line:last-of-type { border-bottom: 0; padding-bottom: 0; }

.hl-line__img {
    display: block;
    width: 92px;
    height: 92px;
    border: 1px solid var(--hl-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.hl-line__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.hl-line__brand {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--hl-muted);
}

.hl-line__name {
    display: block;
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hl-ink);
}

.hl-line__name:hover { color: var(--hl-blue); }

.hl-line__meta {
    font-size: 12.5px;
    color: var(--hl-muted);
}

.hl-line__meta span + span:before {
    content: "·";
    margin: 0 7px;
}

.hl-line__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 150px;
}

.hl-line__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--hl-ink);
    white-space: nowrap;
}

.hl-line__unit {
    font-size: 12px;
    color: var(--hl-muted);
}

.hl-line__drop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hl-muted);
    cursor: pointer;
}

.hl-line__drop:hover { color: var(--hl-red); }

.hl-line__qty { display: flex; align-items: center; gap: 8px; }

/* količina: isti izgled kao na stranici artikla */

.hl-qty--sm .hl-qty__btn { width: 32px; height: 32px; }
.hl-qty--sm .hl-qty__input { width: 42px; height: 32px; }

/* ---------------------------------------------------------- Sažetak */

.hl-sum__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--hl-body);
}

.hl-sum__row strong { color: var(--hl-ink); font-weight: 700; }

.hl-sum__row--free strong { color: var(--hl-green); }

.hl-sum__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hl-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-sum__total b {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hl-sum__vat {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--hl-muted);
}

.hl-sum__actions { margin-top: 18px; display: grid; gap: 10px; }

.hl-btn--block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hl-btn--outline {
    background: #fff;
    color: var(--hl-ink);
    border: 1px solid var(--hl-line);
}

.hl-btn--outline:hover {
    background: var(--hl-soft);
    color: var(--hl-ink);
    border-color: #d8dbe3;
}

.hl-sum__cancel {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: var(--hl-muted);
}

.hl-sum__cancel:hover { color: var(--hl-red); }

.hl-sum__trust {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hl-line);
    display: grid;
    gap: 9px;
}

.hl-sum__trust li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--hl-body);
    list-style: none;
}

.hl-sum__trust i { color: var(--hl-green); margin-top: 2px; }

/* Polja forme (.hl-field) su u auth.css */

/* ---------------------------------------------------------- Izbor (dostava / plaćanje) */

.hl-pick { display: grid; gap: 10px; }

.hl-pick__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.hl-pick__item:hover { border-color: #ccd2e4; }

.hl-pick__item input { margin: 3px 0 0; }

.hl-pick__item--on {
    border-color: var(--hl-ink);
    background: #fbfbfc;
}

.hl-pick__item--off {
    opacity: .6;
    cursor: not-allowed;
    background: var(--hl-soft);
}

.hl-pick__body { flex: 1; min-width: 0; }

.hl-pick__name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-pick__desc {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--hl-muted);
}

.hl-pick__cost {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hl-ink);
    white-space: nowrap;
}

.hl-pick__soon {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hl-line);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hl-muted);
}

.hl-pick__extra {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--hl-line);
}

/* ---------------------------------------------------------- Prazna korpa */

.hl-blank {
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    padding: 64px 24px;
    text-align: center;
}

.hl-blank i {
    font-size: 42px;
    color: var(--hl-line);
}

.hl-blank h2 {
    margin: 16px 0 8px;
    font-size: 21px;
    font-weight: 800;
    color: var(--hl-ink);
}

.hl-blank p {
    margin: 0 auto 22px;
    max-width: 460px;
    font-size: 14px;
    color: var(--hl-muted);
}

/* ---------------------------------------------------------- Zahvalnica */

.hl-done {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    padding: 54px 34px;
    text-align: center;
}

.hl-done__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(15, 157, 88, .1);
    color: var(--hl-green);
    font-size: 30px;
}

.hl-done h1 {
    margin: 20px 0 10px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hl-ink);
}

.hl-done p {
    margin: 0 auto;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--hl-body);
}

.hl-done__id {
    display: inline-block;
    margin: 22px 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--hl-soft);
    border: 1px solid var(--hl-line);
    font-size: 14px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-done__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ---------------------------------------------------------- Modal "dodano u korpu" */

.hl-cartmodal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 16px 16px;
    background: rgba(15, 17, 21, .45);
}

.hl-cartmodal.is-open { display: flex; }

.hl-cartmodal__box {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow-lg);
    overflow: hidden;
}

.hl-cartmodal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hl-line);
    font-size: 15px;
    font-weight: 800;
    color: var(--hl-ink);
}

.hl-cartmodal__head i { color: var(--hl-green); }

.hl-cartmodal__close {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--hl-muted);
    cursor: pointer;
}

.hl-cartmodal__body { padding: 20px; }

.hl-cartmodal__foot {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}

.hl-cartmodal__foot .hl-btn { flex: 1; justify-content: center; }

/* Nalog, poređenje i prijava/registracija su u auth.css (fe/auth/layout, fe/auth/account) */

/* ---------------------------------------------------------- Brza pretraga */

.hl-qs {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    box-shadow: var(--hl-shadow-lg);
}

.hl-qs.is-open { display: block; }

.hl-qs__group { padding: 10px; }

.hl-qs__group + .hl-qs__group { border-top: 1px solid var(--hl-line); }

.hl-qs__title {
    padding: 4px 8px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--hl-muted);
}

.hl-qs__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border-radius: 9px;
}

.hl-qs__item:hover { background: var(--hl-soft); }

.hl-qs__item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid var(--hl-line);
    border-radius: 7px;
    background: #fff;
    flex: 0 0 auto;
}

.hl-qs__name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hl-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-qs__price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--hl-ink);
    white-space: nowrap;
}

.hl-qs__all {
    display: block;
    padding: 12px;
    border-top: 1px solid var(--hl-line);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--hl-ink);
    background: var(--hl-soft);
}

.hl-qs__all:hover { color: var(--hl-blue); }

.hl-qs__none {
    padding: 22px 14px;
    text-align: center;
    font-size: 13.5px;
    color: var(--hl-muted);
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1199px) {
    .hl-co { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 991px) {
    .hl-co { grid-template-columns: minmax(0, 1fr); }

    .hl-side { position: static; }
}

@media (max-width: 575px) {
    .hl-panel { padding: 18px 16px; }

    .hl-line {
        grid-template-columns: 70px minmax(0, 1fr);
        row-gap: 12px;
    }

    .hl-line__img { width: 70px; height: 70px; }

    .hl-line__right {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
    }

    .hl-done { padding: 38px 20px; }
}

/* ---------------------------------------------------------- Kartica artikla */

/*
 * "Dodaj u korpu" na kartici je sada prava POST forma (id artikla u tijelu zahtjeva),
 * pa forma ne smije unositi vlastiti razmak ni sužavati dugme.
 */

.hl-card__foot form {
    margin: 0;
    width: 100%;
}

/* ---------------------------------------------------------- Brza pretraga i bočna korpa */

/* .hl-qs se pozicionira prema ovom omotaču, ne prema formi (forma je flex child) */

.hl-searchwrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}

.hl-sidecart__empty {
    margin: 26px 0;
    text-align: center;
    font-size: 14px;
    color: var(--hl-muted);
}

/* ---------------------------------------------------------- Novosti: lista i članak */

/* Lista novosti: ista kartica kao na početnoj, ali tri u redu i veća slika */

.hl-posts--list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hl-article {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    padding: 40px;
}

.hl-article__head { margin-bottom: 26px; }

.hl-article__cat {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--hl-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hl-article__cat:hover { background: var(--hl-blue); color: #fff; }

.hl-article__title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: var(--hl-ink);
}

.hl-article__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--hl-muted);
}

.hl-article__meta span + span:before {
    content: "·";
    margin-right: 14px;
}

.hl-article__lead {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--hl-body);
}

.hl-article__cover {
    margin: 0 0 28px;
    border-radius: 12px;
    overflow: hidden;
}

.hl-article__cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sekcije članka dolaze iz CMS editora - tipografija se postavlja ovdje */

.hl-article__body { font-size: 16px; line-height: 1.75; color: var(--hl-body); }

.hl-article__body h2,
.hl-article__body h3,
.hl-article__body h4 {
    margin: 32px 0 12px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--hl-ink);
}

.hl-article__body h2 { font-size: 23px; }
.hl-article__body h3 { font-size: 19px; }
.hl-article__body h4 { font-size: 17px; }

.hl-article__body p { margin: 0 0 16px; }

.hl-article__body ul,
.hl-article__body ol { margin: 0 0 16px; padding-left: 22px; }

.hl-article__body li { margin-bottom: 7px; }

.hl-article__body a { color: var(--hl-blue); text-decoration: underline; }

.hl-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.hl-article__body blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--hl-ink);
    background: var(--hl-soft);
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    color: var(--hl-ink);
}

.hl-article__body table {
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
}

.hl-article__body th,
.hl-article__body td {
    padding: 10px 12px;
    border: 1px solid var(--hl-line);
    font-size: 14px;
}

@media (max-width: 991px) {
    .hl-posts--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hl-article { padding: 26px 20px; }

    .hl-article__title { font-size: 25px; }
}

@media (max-width: 575px) {
    .hl-posts--list { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Checkout po uzoru na lifeshop.test
   --------------------------------------------------------------------------
   Raspored, numerisani koraci, kartice opcija i sažetak su kao na lifeshopu;
   paleta je HighLevel-ova - crno kao akcent, plava samo za ikone i fokus
   (lifeshop koristi mornarsko plavo kao primarnu boju).
   ========================================================================== */

/* ---------------------------------------------------------- Zaglavlje sa koracima */

.hl-co-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "crumbs crumbs"
        "title steps";
    align-items: end;
    gap: 6px 24px;
    margin-bottom: 24px;
}

.hl-co-head .hl-crumbs {
    grid-area: crumbs;
    margin: 0;
}

.hl-co-pagetitle {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-area: title;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--hl-ink);
}

.hl-co-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--hl-muted);
}

.hl-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-area: steps;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hl-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--hl-muted);
}

.hl-steps li + li:before {
    content: "";
    width: 28px;
    height: 2px;
    margin-right: 2px;
    border-radius: 2px;
    background: var(--hl-line);
}

.hl-steps li span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--hl-line);
    font-size: 13px;
}

.hl-steps li.is-done { color: var(--hl-body); }

.hl-steps li.is-done span {
    background: var(--hl-green);
    box-shadow: none;
    color: #fff;
}

.hl-steps li.is-current { color: var(--hl-ink); }

.hl-steps li.is-current span {
    background: var(--hl-ink);
    box-shadow: 0 6px 14px -6px rgba(15, 17, 21, .55);
    color: #fff;
}

/* ---------------------------------------------------------- Greške na vrhu */

.hl-co-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff5f5;
    color: #9b1c17;
    font-size: 14px;
}

.hl-co-alert i { margin-top: 2px; }

.hl-co-alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* ---------------------------------------------------------- Raspored */

.hl-co-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 24px;
}

.hl-co-panel {
    min-width: 0;
    padding: 8px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hl-line);
    box-shadow: var(--hl-shadow);
}

.hl-co-aside {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
}

/* ---------------------------------------------------------- Numerisani koraci */

.hl-co-step {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hl-line);
}

.hl-co-step:last-child { border-bottom: 0; }

/* vertikalna linija koja spaja krugove */

.hl-co-step:before {
    content: "";
    position: absolute;
    top: 64px;
    bottom: -24px;
    left: 17px;
    width: 2px;
    border-radius: 2px;
    background: var(--hl-soft);
}

.hl-co-step:last-child:before { display: none; }

.hl-co-num {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--hl-ink);
    box-shadow: 0 6px 14px -6px rgba(15, 17, 21, .55);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.hl-co-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hl-co-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--hl-ink);
}

.hl-co-desc {
    margin: -6px 0 0;
    font-size: 14px;
    color: var(--hl-muted);
}

.hl-co-optional {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hl-soft);
    color: var(--hl-muted);
    font-size: 11.5px;
    font-weight: 600;
}

/* ---------------------------------------------------------- Privatno / firma */

.hl-co-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hl-co-type {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
        "icon name"
        "icon line";
    align-items: center;
    gap: 2px 14px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hl-line);
    cursor: pointer;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.hl-co-type:hover { box-shadow: inset 0 0 0 1px #ccd2e4; }

.hl-co-type.is-on {
    background: #fbfbfc;
    box-shadow: inset 0 0 0 2px var(--hl-ink);
}

.hl-co-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hl-co-type-icon {
    display: grid;
    grid-area: icon;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--hl-blue);
    font-size: 18px;
}

.hl-co-type strong {
    grid-area: name;
    font-size: 15px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-co-type small {
    grid-area: line;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--hl-muted);
}

.hl-co-type-tick {
    position: absolute;
    top: 12px;
    right: 14px;
    opacity: 0;
    color: var(--hl-ink);
    font-size: 14px;
    transition: opacity .2s ease;
}

.hl-co-type.is-on .hl-co-type-tick { opacity: 1; }

/* ---------------------------------------------------------- Polja */

.hl-co-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.hl-co-grid[hidden] { display: none; }

.hl-co-company {
    padding: 16px;
    border-radius: 16px;
    background: var(--hl-soft);
}

.hl-co-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.hl-co-field.is-full { grid-column: 1 / -1; }

.hl-co-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-co-input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    color: var(--hl-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hl-co-input::placeholder { color: #a9b3c1; }

.hl-co-input:hover { border-color: #ccd2e4; }

.hl-co-input:focus {
    border-color: var(--hl-blue);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, .14);
}

.hl-co-input[aria-invalid="true"] { border-color: var(--hl-red); }

.hl-co-textarea {
    height: auto;
    min-height: 96px;
    padding: 13px 16px;
    line-height: 1.45;
    resize: vertical;
}

.hl-co-hint {
    font-size: 12.5px;
    color: var(--hl-muted);
}

.hl-co-error {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--hl-red);
}

.hl-co-error i { margin-top: 2px; }

/* ---------------------------------------------------------- Prekidač (druga adresa) */

.hl-co-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hl-ink);
    cursor: pointer;
}

.hl-co-toggle[hidden] { display: none; }

.hl-co-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hl-co-toggle-track {
    position: relative;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: var(--hl-line);
    transition: background-color .2s ease;
}

.hl-co-toggle-track:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 17, 21, .3);
    transition: transform .2s ease;
}

.hl-co-toggle input:checked + .hl-co-toggle-track { background: var(--hl-ink); }

.hl-co-toggle input:checked + .hl-co-toggle-track:after { transform: translateX(16px); }

.hl-co-toggle input:focus-visible + .hl-co-toggle-track {
    outline: 2px solid var(--hl-blue);
    outline-offset: 2px;
}

.hl-co-other {
    padding: 16px;
    border-radius: 16px;
    background: var(--hl-soft);
}

.hl-co-other[hidden] { display: none; }

.hl-co-other .hl-co-input { background: #fff; }

/* ---------------------------------------------------------- Kartice dostave i plaćanja */

.hl-co-options {
    display: grid;
    gap: 10px;
}

.hl-co-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hl-line);
    cursor: pointer;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.hl-co-option:hover { box-shadow: inset 0 0 0 1px #ccd2e4; }

.hl-co-option.is-on {
    background: #fbfbfc;
    box-shadow: inset 0 0 0 2px var(--hl-ink);
}

.hl-co-option.is-disabled {
    cursor: not-allowed;
    opacity: .6;
    background: var(--hl-soft);
}

.hl-co-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--hl-ink);
}

.hl-co-option-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--hl-blue);
    font-size: 18px;
}

.hl-co-option-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.hl-co-option-text strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-co-option-text small {
    font-size: 13px;
    line-height: 1.4;
    color: var(--hl-muted);
}

.hl-co-option-price {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--hl-ink);
}

.hl-co-option-price.is-free { color: var(--hl-green); }

.hl-co-soon {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5a00;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hl-co-cards {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hl-co-cards img {
    height: 22px;
    width: auto;
}

/* ---------------------------------------------------------- "Vaša narudžba" */

.hl-co-box {
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hl-line);
    box-shadow: var(--hl-shadow);
}

.hl-co-box-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hl-ink);
}

.hl-co-items {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--hl-line);
    list-style: none;
}

.hl-co-items li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.hl-co-item-thumb {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    padding: 5px;
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    background: #fff;
}

.hl-co-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* količina na slici, kao na lifeshopu */

.hl-co-item-qty {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hl-ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
}

.hl-co-item-name {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hl-ink);
}

.hl-co-item-name a { color: var(--hl-ink); }
.hl-co-item-name a:hover { color: var(--hl-blue); }

.hl-co-item-name small {
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--hl-muted);
}

.hl-co-item-line {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--hl-ink);
}

.hl-co-sum {
    display: grid;
    gap: 6px;
    margin: 0;
}

.hl-co-sum > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hl-co-sum dt {
    font-size: 14px;
    font-weight: 400;
    color: var(--hl-muted);
}

.hl-co-sum dt span {
    font-size: 12.5px;
    color: #9aa5b4;
}

.hl-co-sum dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--hl-ink);
}

.hl-co-sum dd.is-free { color: var(--hl-green); }

.hl-co-sum .is-total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--hl-line);
}

.hl-co-sum .is-total dt {
    font-size: 16px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-co-sum .is-total dd {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hl-co-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 14px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hl-ink);
    cursor: pointer;
}

.hl-co-terms input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--hl-ink);
}

.hl-co-terms a {
    color: var(--hl-blue);
    text-decoration: underline;
}

.hl-co-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--hl-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hl-co-terms + .hl-co-order,
.hl-co-error + .hl-co-order { margin-top: 0; }

.hl-co-order:hover { background: var(--hl-blue); color: #fff; }

.hl-co-order i { transition: transform .2s ease; }

.hl-co-order:hover i { transform: translateX(4px); }

.hl-co-note {
    margin: 10px 0 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: #9aa5b4;
}

.hl-co-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hl-muted);
}

.hl-co-back:hover { color: var(--hl-ink); }

.hl-co-trust {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--hl-line);
    list-style: none;
}

.hl-co-trust li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0;
    font-size: 12.5px;
    color: var(--hl-body);
}

.hl-co-trust i {
    margin-top: 2px;
    color: var(--hl-green);
}

.hl-co-help {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--hl-ink);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
}

.hl-co-help:hover { background: var(--hl-ink-2); color: #fff; }

.hl-co-help strong {
    display: block;
    font-size: 14px;
}

.hl-co-help-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    font-size: 18px;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1199px) {
    .hl-co-form { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 991px) {
    .hl-co-head {
        grid-template-areas:
            "crumbs crumbs"
            "title title"
            "steps steps";
    }

    .hl-steps { overflow-x: auto; padding-bottom: 4px; }

    .hl-co-form { grid-template-columns: minmax(0, 1fr); }

    .hl-co-aside { position: static; }
}

@media (max-width: 575px) {
    .hl-co-pagetitle { font-size: 25px; }

    .hl-co-panel { padding: 4px 16px; }

    .hl-co-step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
    }

    .hl-co-step:before { left: 14px; top: 58px; }

    .hl-co-num { width: 30px; height: 30px; font-size: 13px; }

    .hl-co-title { font-size: 17px; }

    .hl-co-grid,
    .hl-co-types { grid-template-columns: minmax(0, 1fr); }

    .hl-co-option {
        grid-template-columns: 20px minmax(0, 1fr);
        row-gap: 8px;
        padding: 14px;
    }

    .hl-co-option-icon { display: none; }

    .hl-co-option-price { grid-column: 2; justify-self: start; }

    .hl-co-cards { grid-column: 2; }
}

/* Panel sa stavkama na korpi dijeli zaobljenje sa sažetkom (.hl-co-box) */

.hl-co .hl-panel { border-radius: 20px; }
