/* ── L8 MKT Frontend CSS ── */
/* Nalaganje je defer + pogojno — ne vpliva na hitrost strani */

/* PASICA */
.l8mkt-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;          /* Pasica je POD navigacijo — nav ima višji z-index */
    box-sizing: border-box;
    border-bottom: 1px solid rgba(71,25,84,.1);
}
.l8mkt-bar__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.l8mkt-bar.is-animated .l8mkt-bar__track {
    animation: l8mktScroll 18s linear infinite;
}
.l8mkt-bar.is-animated .l8mkt-bar__track:hover {
    animation-play-state: paused;
}
@keyframes l8mktScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.l8mkt-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 100%;
    min-height: 38px;
    text-decoration: none;
    transition: opacity .2s;
}
.l8mkt-bar__item:hover { opacity: .8; }
a.l8mkt-bar__item:hover { text-decoration: underline; }

/* Puščica za sporočila z linkom */
.l8mkt-bar__arrow { font-style: normal; }

/* Separatorji med sporočili */
.l8mkt-bar__sep { display: inline-flex; align-items: center; flex-shrink: 0; }

/* DOTS — pike med sporočili (privzeti stil) */
.l8mkt-bar__sep--dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 4px;
}

/* PLAIN — navadna | ločnica */
.l8mkt-bar__sep--line {
    color: currentColor;
    opacity: .3;
    margin: 0 12px;
    font-size: 14px;
    font-weight: 300;
}

/* ARROW — › med sporočili */
.l8mkt-bar__sep--arrow {
    color: currentColor;
    opacity: .5;
    margin: 0 8px;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

/* PILL — vsako sporočilo v kapsuli, brez separatorja */
.l8mkt-bar--pill .l8mkt-bar__item {
    background: rgba(0,0,0,.08);
    border-radius: 100px;
    padding: 4px 16px;
    margin: 0 5px;
    min-height: unset;
}

/* Stara .l8mkt-bar__dot za nazaj-kompatibilnost */
.l8mkt-bar__dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* POPUP */
.l8mkt-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.l8mkt-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    cursor: pointer;
}
.l8mkt-popup__box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: calc(100% - 40px);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    text-align: center;
    animation: l8mktPopIn .25s ease;
}
@keyframes l8mktPopIn {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.l8mkt-popup__close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.l8mkt-popup__title {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #471954;
    margin-bottom: 10px;
}
.l8mkt-popup__body {
    font-size: 14px;
    color: rgba(71,25,84,.7);
    line-height: 1.7;
    margin-bottom: 22px;
}
.l8mkt-popup__btn {
    display: block;
    background: #ffd814;
    color: #471954;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .2s;
}
.l8mkt-popup__btn:hover { filter: brightness(.93); }

/* KUPON NA IZDELKU */
.l8mkt-kupon {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fffdf2;
    border: 1.5px dashed #ce0037;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.l8mkt-kupon__btn {
    background: #ce0037;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: filter .2s;
}
.l8mkt-kupon__btn:hover { filter: brightness(.9); }
.l8mkt-kupon__applied {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
}

/* ORDER BUMP */
.l8mkt-bump {
    border: 2px solid #ffd814;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    background: #fffdf2;
}
.l8mkt-bump__head {
    background: #ffd814;
    color: #471954;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 10px 18px;
    text-align: center;
}
.l8mkt-bump__body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
}
.l8mkt-bump__img img {
    width: 80px; height: 80px;
    object-fit: contain;
    border-radius: 8px;
}
.l8mkt-bump__name {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #471954;
    display: block;
    margin-bottom: 4px;
}
.l8mkt-bump__price {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #471954;
    margin-bottom: 6px;
}
.l8mkt-bump__price del {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}
.l8mkt-bump__desc {
    font-size: 13px;
    color: rgba(71,25,84,.65);
    line-height: 1.6;
}
.l8mkt-bump__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: #471954;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s;
}
.l8mkt-bump__cta:hover { filter: brightness(1.15); }
.l8mkt-bump__check {
    width: 18px; height: 18px;
    accent-color: #ffd814;
    cursor: pointer;
}

/* DARILO BANNER */
.l8mkt-gift-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #2e7d32;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 99998;
    animation: l8mktSlideUp .3s ease;
    white-space: nowrap;
}
@keyframes l8mktSlideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

@media (max-width: 600px) {
    .l8mkt-bar__item { padding: 0 1rem; font-size: 12px; }
    .l8mkt-bump__body { flex-direction: column; }
    .l8mkt-gift-banner { font-size: 13px; padding: 12px 20px; white-space: normal; text-align: center; }
}

/* ── Product USP ── */
body .l8mkt-usp-block {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
body .l8mkt-usp-block .l8mkt-usp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
body .l8mkt-usp-block .l8mkt-usp-ico {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #471954;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    overflow: hidden;
    text-align: center;
}
body .l8mkt-usp-block .l8mkt-usp-ico .material-icons {
    font-size: 20px;
    color: #fff;
    line-height: 1;
    font-family: 'Material Icons', sans-serif;
}
body .l8mkt-usp-block .l8mkt-usp-ico img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}
body .l8mkt-usp-block .l8mkt-usp-txt {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    flex: 1;
}
.l8mkt-usp-txt {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}
