
/* --- Viber product minimal --- */
.viber-minimal{
    text-align:center;
    margin-top:16px;
    padding:12px;
    border:1px solid #eee;
    border-radius:10px;
    background:#faf9ff;
}
.viber-minimal .viber-sub{
    margin-bottom:10px;
    color:#555;
    font-size:14px;
}
.viber-btn{
    display:inline-block;
    background:#7360F2;
    color:#fff;
    font-weight:700;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(115,96,242,.2);
}
.viber-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }

/* ❌ скриваме бутона за настолни, ✅ показваме само на мобилни */
@media (min-width: 992px){
    .viber-minimal{ display:none; }
}




/* === Product: Estimated delivery card === */
#product-delivery.form-group{
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 12px;
    padding: 12px 14px;

    background-color: #f7f9ff;      /* лек, приятен фон */
    border: 1px solid #e5e9ff;      /* деликатен контур */
    border-radius: 12px;            /* „картичка“ */
}

#product-delivery.form-group::before{
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    /* календар SVG (движи се с темата, без външни файлове) */
    background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237360F2'><path d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a2 2 0 0 1 2 2v3H2V6a2 2 0 0 1 2-2h1V3a1 1 0 1 1 2 0v1zm15 8H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-9z'/></svg>");
    /* ако искаш друга иконка (камион), кажи и ще сменя SVG-то */
}

#product-delivery strong{
    color: #7360F2;                 /* акцент към заглавието */
    margin-right: 4px;
}

@media (max-width: 768px){
    #product-delivery.form-group{
        padding: 10px 12px;
        border-radius: 10px;
    }
}



/* === Sticky Cart Bar (нов стил) === */

/* височина на бара (за да не закрива съдържание) */
body{ padding-bottom:84px; }
@media (min-width:480px){ body{ padding-bottom:64px; } }
@media (min-width:992px){ body{ padding-bottom:0; } }

/* бутона "нагоре" да не се удря в бара */
.scrollup{ bottom: 100px; }
@media (min-width:480px){ .scrollup{ bottom: 74px; } }
@media (min-width:992px){ .scrollup{ bottom: 15px; } }

/* чат балон – да стои над бара (ако го ползваш) */
#chatra, #chatra.chatra--mobile-widget.chatra--expanded:not(.chatra--transparent){ bottom: 160px !important; }
#chatra{ max-height: calc(100% - 140px - 100px - 80px) !important; }
@media (min-width:480px){
    #chatra, #chatra.chatra--mobile-widget.chatra--expanded:not(.chatra--transparent){ bottom: 120px !important; }
    #chatra{ max-height: calc(100% - 140px - 64px - 80px) !important; }
}
@media (min-width:992px){
    #chatra, #chatra.chatra--mobile-widget.chatra--expanded:not(.chatra--transparent){ bottom: 70px !important; }
    #chatra{ max-height: calc(100% - 140px - 80px) !important; }
}

/* самият bar */
#cart-bar{
    display:none;                 /* показва се от твоя JS */
    position:fixed; left:0; right:0; bottom:0; z-index:100;
    height:84px; padding:10px 12px;

    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);

    border-top:1px solid #eee;
    box-shadow: 0 -8px 24px rgba(0,0,0,.06);

    display:flex; align-items:center; justify-content:space-between; gap:12px;
}
@media (min-width:480px){
    #cart-bar{ height:64px; padding:8px 16px; }
}

/* ляво: снимка */
#cart-bar img{
    width:44px; height:44px; object-fit:cover;
    border-radius:8px; margin-right:10px;
}
@media (max-width:360px){ #cart-bar img{ display:none; } }

/* цена */
#cart-bar .price-container{
    display:inline-block; vertical-align:middle; margin:0 12px 0 0; padding:0; line-height:1.1;
}
#cart-bar .price-old{
    font-size:13px; color:#9aa0a6; text-decoration:line-through;
}
#cart-bar .price, #cart-bar .price-special{
    color:#111; font-weight:700; font-size:16px; height:auto;
}

/* десен блок: количество + бутон */
#cart-bar #cart-controls{
    padding-top:0; float:none;
    display:flex; align-items:center; gap:10px;
}

#product-view #cart-bar .btn-shopping-cart {
    display: inline-flex;            /* центрира съдържанието */
    align-items: center;             /* вертикално центриране */
    justify-content: center;         /* хоризонтално центриране */
    gap: 8px;                        /* ако има иконка + текст */
    line-height: 1;                  /* няма „плаващ“ baseline */
    font-size: 16px;                 /* фиксирай размер за стабилност */

    width: auto;
    min-width: 140px;
    background: #ff7a00;
    border-color: #ff7a00;
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(255,122,0,.25);
    transition: filter .2s, transform .15s;
}

/* ако вътре има <span> или <i>, премахни наследени line-height/vertical-align */
#product-view #cart-bar .btn-shopping-cart > * {
    line-height: 1;
    vertical-align: middle;
}


