/* ── style1 card ──────────────────────────────────────────────────────────── */

/* Card shell */
.s1-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: visible; /* let expanded color panel escape */
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.s1-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ── Ribbons ────────────────────────────────────────────────────────────── */
.s1-card__ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #222;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.s1-card__ribbon--sale {
    background: #e70a1f;
    left: auto;
    right: 12px;
}

.s1-card__ribbon--combined {
    top: 40px;
}

.s1-card__ribbon--akcija {
    background: transparent;
    left: auto;
    right: 12px;
    top: 12px;
    padding: 0;
}

/* Sticker badges */
.s1-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Image wrap ─────────────────────────────────────────────────────────── */
.s1-card__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #ebebeb;
}

/* Primary image fills the wrapper */
.s1-card__image-wrap .img1,
.s1-card__image-wrap .img-fluid {
    display: block;
    width: 100%;
    height: auto;
}

/* Hover image crossfade */
.s1-card__image-wrap .img2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Card body ──────────────────────────────────────────────────────────── */
.s1-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.s1-card__code {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.s1-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 3px;
    text-transform: none;
}

.s1-card__title a {
    color: #1c1c1e;
    text-decoration: none;
}

.s1-card__title a:hover {
    color: #444;
}

.s1-card__desc {
    font-size: 12px;
    color: #888;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.s1-card__desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
}

/* ── Color swatches — overrides on shared card-boje/card-boja ── */
.s1-card .s1-card__colors.card-boje {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    gap: 3px;
    flex-wrap: wrap;
}

.s1-card .card-boja {
    border-radius: 3px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.s1-card .card-boja.last{
    border: none;
}
.s1-card .card-boja:hover{
    transform: none;
}


/* ── Stock row ──────────────────────────────────────────────────────────── */
.s1-card__stock-row {
    border-top: 1px solid #ebebeb;
    margin-top: 12px;
    padding-top: 12px;
}

.s1-card__stock {
    font-size: 14px;
    color: #1c1c1e;
    font-weight: 400;
}

/* ── Footer: Zalihe link | Price ────────────────────────────────────────── */
.s1-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.s1-card .s1-card__zalihe,
.s1-card .dg2-button-zalihe {
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1e;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: none;
    margin-top: 0;
    padding-top: 0;
}

.s1-card .s1-card__zalihe:hover,
.s1-card .dg2-button-zalihe:hover {
    color: #555;
    text-decoration: underline;
}

.s1-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -.01em;
}
.dg2-tabela-boja-span {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-size: cover !important;
}
.dg2-bojaokvir {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    padding: 2px;
    transition: border-color 0.15s;
}