﻿.vin-wrapper {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
}

.vin-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

    .vin-title span {
        color: #93C5FD;
    }

/* ✅ Input + Button në një vijë perfekte */
.vin-bar {
    display: flex;
    align-items: center;
    border: 2px solid #2563EB;
    background: #fff;
    width: 100%;
    max-width: 480px;
    height: 54px;
    box-sizing: border-box;
}

    .vin-bar input {
        flex: 1;
        height: 100%;
        border: none;
        outline: none;
        padding: 0 1rem;
        font-size: 1rem;
        color: #1E3A8A;
    }

        .vin-bar input::placeholder {
            color: #9ca3af;
        }

    .vin-bar button {
        height: 100%;
        background: #2563EB;
        color: #fff;
        border: none;
        font-weight: 600;
        text-transform: uppercase;
        padding: 0 1.5rem;
        cursor: pointer;
        font-size: 1rem;
    }

        .vin-bar button:hover {
            background: #1E40AF;
        }

/* ✅ Veprimet poshtë */
.vin-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .vin-actions button {
        background: transparent;
        border: 2px solid #fff;
        color: #fff;
        padding: 0.6rem 1rem;
        font-weight: 500;
        cursor: pointer;
        text-transform: uppercase;
    }

        .vin-actions button:hover {
            background: #fff;
            color: #1E3A8A;
        }

    .vin-actions a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }

        .vin-actions a:hover {
            text-decoration: underline;
        }

/* ✅ Responsive për telefona */
@media (max-width: 520px) {
    .vin-bar {
        
        height: auto;
    }

        .vin-bar input, .vin-bar button {
            width: 100%;
            height: 50px;
        }

    .vin-actions {
        flex-direction: column;
    }

        .vin-actions button, .vin-actions a {
            width: 100%;
            text-align: center;
        }
}
.icon-cash {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 6px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}


/* 💳 Stilimi i seksionit të artikullit dhe totalit */
.price-summary {
    background: #f9fafc;
    border: 1px solid #e0e3e7;
    border-radius: 14px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .price-summary:hover {
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    }

    .price-summary h3 {
        font-size: 1.1rem;
        color: #2c3e50;
        margin-bottom: 15px;
        border-bottom: 2px solid #007bff;
        padding-bottom: 5px;
        display: inline-block;
    }

.item-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Informacioni i artikullit */
.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* 💸 Stikeri i çmimit */
.item-sticker {
    background: linear-gradient(135deg, #007bff, #0099ff);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 🔢 Butonat + / - */
.qty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .qty-btn:hover {
        background: #005fc9;
    }

.qty-value {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

/* 💰 Totali */
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

    .total-row strong {
        color: #e53935;
    }


/* 💳 Karta e çmimeve */
.price-summary {
    background: #f9fafc;
    border: 1px solid #e0e3e7;
    border-radius: 14px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

    /* 🧾 Titulli */
    .price-summary h3 {
        font-size: 1.1rem;
        color: #2c3e50;
        margin-bottom: 15px;
        border-bottom: 2px solid #007bff;
        padding-bottom: 5px;
    }

/* 🧮 Tabela e artikujve */
.price-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.price-header,
.price-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    text-align: center;
    padding: 6px 0;
}

.price-header {
    font-weight: 700;
    color: #007bff;
    border-bottom: 1px solid #ddd;
}

.price-item {
    align-items: center;
    border-bottom: 1px dashed #ccc;
    color: #333;
    font-size: 0.95rem;
}

/* 🔢 Butonat + / − */
.qty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .qty-btn:hover {
        background: #005fc9;
    }

.qty-value {
    font-weight: 600;
    min-width: 25px;
}

/* 📦 Artikulli shtesë (stikeri) */
.extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 10px;
    background: #eef6ff;
    border: 1px solid #cde1ff;
    border-radius: 8px;
    font-size: 0.95rem;
}

    .extra-item input[type="checkbox"] {
        accent-color: #007bff;
        transform: scale(1.2);
        margin-right: 8px;
    }

    .extra-item span {
        color: #333;
    }

.extra-price {
    font-weight: 600;
    color: #007bff;
}

/* 💰 Totali përfundimtar */
.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 12px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

    .grand-total strong {
        color: #e53935;
    }



.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 1.1rem;
    color: #004aad;
    font-weight: 600;
}

.spinner {
    border: 4px solid #ddd;
    border-top: 4px solid #004aad;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    animation: spin 0.9s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
