/* PŁATNOŚĆ Z PORTFELA */

.wallet-payment {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.wallet-payment h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: #f1f1f5;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.wallet-balance strong {
    color: #cb3333;
}

.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallet-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-field label {
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
}

.wallet-field input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wallet-field input:focus {
    outline: none;
    border-color: #cb3333;
    box-shadow: 0 0 0 2px rgba(203,51,51,0.15);
}

.wallet-pay-btn {
    margin-top: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background-color: #cb3333;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-pay-btn:hover {
    background-color: #a62828;
    transform: scale(1.02);
}

.wallet-pay-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* KOSZYK */

.cart {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.cart h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background-color: #f9f9fb;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #333;
}

.item-desc {
    font-size: 0.9em;
    color: #555;
}

.item-price {
    font-weight: 600;
    color: #cb3333;
    margin-left: 10px;
    white-space: nowrap;
}

.remove-item {
    margin-left: 15px;
    padding: 5px 12px;
    border: 1px solid #cb3333;
    border-radius: 8px;
    background-color: transparent;
    color: #cb3333;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.remove-item:hover {
    background-color: #cb3333;
    color: #fff;
    transform: scale(1.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 12px;
    background-color: #f1f1f5;
    font-weight: 700;
    font-size: 1.15em;
    color: #cb3333;
}

.cart-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background-color: #f9f9fb;
    border-radius: 12px;
    border: 2px dashed #ccc;
    color: #999;
    font-style: italic;
    font-size: 1em;
}

.cart-empty p {
    margin: 0;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.order-summary h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-item,
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
}

.summary-item {
    background-color: #f9f9fb;
}

.summary-total {
    background-color: #f1f1f5;
    font-weight: 700;
    font-size: 1.15em;
    color: #cb3333;
}

.checkout-btn {
    margin-top: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background-color: #cb3333;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background-color: #a62828;
    transform: scale(1.02);
}

.delete-alert {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #cb3333;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

.delete-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Karta produktu */
.pricelist-main {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    max-width: 350px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricelist-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.pricelist-inner {
    padding: 20px;
    text-align: center;
}

/* Okrągły obrazek z badge */
.pricelist-img-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px auto;
    position: relative;
    border-radius: 50%;
    overflow: visible;
    border: 4px solid #f1f1f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pricelist-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.pricelist-img-circle:hover img {
    transform: scale(1.05);
}

/* Badge nakładający się od prawej strony */
.img-discount-tag {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    background-color: #e63946; /* pozostaje oryginalny czerwony */
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Nazwa produktu */
.pricelist-header strong {
    font-size: 1.1em;
    color: #222;
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Lista cen */
.pricelist-prices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.price-item {
    background-color: #f9f9fb;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.price-item:hover {
    background-color: #f1f1f5;
}

.label {
    font-weight: 600;
    color: #333;
}

.price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.discount-price {
    color: #cb3333;
    font-weight: 700;
}

.original-price {
    color: #777;
    text-decoration: line-through;
}

.nominal {
    font-size: 0.85em;
}

/* Footer */
.pricelist-footer {
    margin-top: 15px;
    font-size: 0.95em;
    text-align: center;
}

.pricelist-footer span strong {
    color: #cb3333;
}

.pricelist-footer i.fa {
    margin-right: 6px;
    color: #cb3333;
}

/* Przyciski full-width */
.pricelist-buttons-full {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pricelist-buttons-full .btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s ease;
}

/* Szczegóły */
.details-btn {
    background-color: #f1f1f5;
    color: #333;
}

.details-btn:hover {
    background-color: #e0e0e5;
}

/* Zamawiam */
.order-btn {
    background-color: #cb3333;
    color: #fff;
}

.order-btn:hover {
    background-color: #a62828;
    transform: scale(1.05);
}
