/* ========== ORDER ITEM CARDS ========== */
.order-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.order-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.order-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #e67e22;
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Cart quantity buttons — unutar pilule s obrubom (current_order.css), pa
   bez vlastitog kruga. 34px: veće od starih 28px za palac, a s 40px je
   pilula djelovala preveliko uz naziv stavke. */
.cart-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #c2410c;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Površina za dodir 44 px (Apple HIG / WCAG 2.5.5), a izgled ostaje 34 px:
   nevidljiv sloj 5 px oko gumba. Prema broju količine (min-width 30 px)
   svaka strana uzme 5 px, pa se dva gumba ne preklapaju. */
.cart-qty-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
}

/* Samo uz miš: na mobitelu :hover ostane "zalijepljen" nakon dodira. */
@media (hover: hover) {
    .cart-qty-btn:not(:disabled):hover {
        background: #c2410c !important;
        color: white !important;
    }
}

.cart-qty-btn:active {
    transform: scale(0.92);
}

.cart-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Količina 1: kanta umjesto "−" (kao Glovo), briše odmah, bez potvrde. */
.cart-qty-btn--obrisi i {
    font-size: 14px;
}

/* Checkout button */
.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4) !important;
}

/* Browse menu button */
.browse-menu-btn {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.browse-menu-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
}

/* Extras badges — odabrane opcije u košarici. #c2410c na #fff8f0 4,9:1;
   stara #e67e22 imala je 2,7:1. */
.extras-badge {
    background: #fff8f0;
    color: #c2410c;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ffecd1;
}

/* Complete order button */
.complete-order-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.complete-order-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4) !important;
}

/* Item card for order history */
.item-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #5B9BD5;
    transition: all 0.2s;
}

.item-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.item-quantity {
    background: #5B9BD5;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.item-price {
    color: #e67e22;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

/* Extras list */
.extras-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dee2e6;
}

.extras-title {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.extra-item {
    display: inline-block;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
}

.no-extras {
    color: #95a5a6;
    font-style: italic;
    font-size: 13px;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .checkout-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .complete-order-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .browse-menu-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .extras-badge {
        font-size: 10px;
        padding: 3px 7px;
    }
}
