/* FILE_VERSION = 1.0.1
 * VOGO Cart Panel (vogo-cart-panel.php + vogo-cart-panel/mini-cart.php): mini-cosul VOGO, in panoul lateral al temei
 * (.cart-widget-side) si oriunde apare. Culori: albastrul VOGO din vogo-brand-blue.css (--vogo-brand-blue), text #1f2937,
 * linii #e5e7eb, fundal deschis #f4f6f9.
 *
 * SECTIUNI:
 *   1. Antetul panoului temei si marginile (textul si liniile la 20px de marginea ecranului)
 *   2. Randul de produs
 *   3. Cantitatea si pretul
 *   4. Stergerea
 *   5. Subtotalul, bara de livrare gratuita si butoanele
 *   6. Cos gol
 *   7. Pe telefon: panoul pe tot ecranul, deasupra butoanelor plutitoare
 */

/* 1. Antetul panoului (titlul si „Close” ale temei): linia de sub el are aceleasi margini ca liniile din lista */
.cart-widget-side .wd-heading {
    margin: 0 20px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #e5e7eb;
}
.cart-widget-side .wd-heading .title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.vogo-mc {
    padding: 0 20px 20px;
    color: #1f2937;
}
.vogo-mc-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 2. Randul: poza 72px | nume, cantitate si pret | stergere */
.vogo-mc-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: start;
    margin: 0 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}
.vogo-mc-thumb img {
    display: block;
    width: 72px !important;
    height: 72px !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin: 0 !important;
}
.vogo-mc-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.vogo-mc-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.vogo-mc-name a {
    color: #1f2937 !important;
    text-decoration: none;
}
.vogo-mc-info dl.variation {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* 3. Cantitatea in stanga, pretul in dreapta, pe acelasi rand */
.vogo-mc-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 !important;
    color: #1f2937 !important;
}
.vogo-mc-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vogo-mc .vogo-qty-minus,
.vogo-mc .vogo-qty-plus {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    color: var(--vogo-brand-blue, #0F6CBD) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.vogo-mc .vogo-qty-minus:hover,
.vogo-mc .vogo-qty-plus:hover {
    border-color: var(--vogo-brand-blue, #0F6CBD) !important;
}
.vogo-mc .vogo-qty-number {
    min-width: 22px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}
.vogo-mc-price,
.vogo-mc-price .amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--vogo-brand-blue, #0F6CBD) !important;
    white-space: nowrap;
}

/* 4. Stergerea: cerc mic cu „×”, in dreapta sus a randului */
.vogo-mc a.vogo-mc-remove {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-decoration: none;
}
.vogo-mc a.vogo-mc-remove:hover {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}
.vogo-mc a.vogo-mc-remove::before,
.vogo-mc a.vogo-mc-remove::after {
    content: none !important;
}

/* 5. Subtotalul pe un rand, apoi cele doua butoane, aceeasi inaltime */
.vogo-mc-subtotal {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;
    padding: 16px 0 !important;
    border: 0 !important;
    font-size: 16px;
}
.vogo-mc-subtotal-label {
    font-weight: 600;
    color: #1f2937;
}
.vogo-mc-subtotal-amount,
.vogo-mc-subtotal-amount .amount {
    font-weight: 700;
    color: var(--vogo-brand-blue, #0F6CBD) !important;
}
.vogo-mc-buttons {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}
.vogo-mc a.vogo-mc-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    text-decoration: none;
    box-shadow: none !important;
}
.vogo-mc a.vogo-mc-btn--primary {
    background: var(--vogo-brand-blue, #0F6CBD) !important;
    border: 1.5px solid var(--vogo-brand-blue, #0F6CBD) !important;
    color: #ffffff !important;
}
.vogo-mc a.vogo-mc-btn--primary:hover {
    background: var(--vogo-brand-blue-dark, #0B5A9E) !important;
    border-color: var(--vogo-brand-blue-dark, #0B5A9E) !important;
}
.vogo-mc a.vogo-mc-btn--outline {
    background: #ffffff !important;
    border: 1.5px solid var(--vogo-brand-blue, #0F6CBD) !important;
    color: var(--vogo-brand-blue, #0F6CBD) !important;
}
.vogo-mc a.vogo-mc-btn--outline:hover {
    background: #f4f6f9 !important;
}
.vogo-mc a.vogo-mc-btn--ghost {
    background: transparent !important;
    border: 0 !important;
    color: var(--vogo-brand-blue, #0F6CBD) !important;
}
.vogo-mc a.vogo-mc-btn--ghost:hover {
    background: #f4f6f9 !important;
}
/* Mesajul temei despre livrarea gratuita (intre subtotal si butoane), cu spatiu fata de butoane */
.vogo-mc-subtotal ~ *:not(.vogo-mc-buttons) {
    margin: 0 0 16px !important;
    max-width: 100%;
}

/* 6. Cos gol */
.vogo-mc--empty {
    padding-top: 24px;
    text-align: center;
}
.vogo-mc-empty-text {
    margin: 0 0 16px;
    font-size: 15px;
    color: #6b7280;
}

/* 7. Pe telefon si tableta: panoul ocupa tot ecranul si sta deasupra butoanelor plutitoare (Assistance 24/7 si celelalte) */
@media (max-width: 1024px) {
    .cart-widget-side {
        --wd-side-hidden-w: 100vw;
        width: 100vw !important;
        max-width: 100vw !important;
        z-index: 2147483000 !important;
    }
}
