/* ============================================================
   Svet Balona – Outlet Cart Widget (sboc-style.css)
   Extends fbt-style.css patterns — no conflicts
   ============================================================ */

.sboc-wrap {
    margin: 0 0 40px;
}

.sboc-title {
    margin-bottom: 16px;
}

/* ── Swiper container ── */
.sboc-swiper {
    padding-bottom: 32px !important; /* room for pagination dots */
}

/* ── Card ── */
.sboc-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}

.sboc-card-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity .2s;
}

.sboc-card-wrap:hover .sboc-card-img img {
    opacity: 0.92;
}

.sboc-name {
    font-size: 13px;
    margin: 8px 0 4px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Prices ── */
.sboc-price {
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.sboc-price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 4px;
    font-size: 12px;
}

.sboc-price-new {
    color: #c0392b;
    font-weight: 600;
}

/* Make sure WC wc_price spans don't add extra margin */
.sboc-price .woocommerce-Price-amount {
    font-size: inherit;
}

/* ── Outlet badge ── */
.sboc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
}

/* ── Add to cart button — reuses fbt-atc-btn base, sboc specifics ── */
.sboc-atc-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, background .2s;
    z-index: 2;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sboc-card-wrap:hover .sboc-atc-btn {
    opacity: 1;
    transform: translateY(0);
}

.sboc-atc-btn:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.sboc-atc-btn.sboc-atc-loading {
    opacity: 1;
    pointer-events: none;
}

.sboc-atc-btn.sboc-atc-done {
    opacity: 1;
    background: #e8f5e9;
    color: #2e7d32;
}

.sboc-atc-select {
    text-decoration: none;
    font-size: 14px;
    color: #666;
}

/* Mobile: always visible */
@media (hover: none) {
    .sboc-atc-btn {
        opacity: 0.85;
        transform: translateY(0);
    }
}
