/* Cart Sidebar Layout */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: right;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 25px;
    background: linear-gradient(135deg, #3b665b, #2c4d44);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cart-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.close-cart {
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.close-cart:hover {
    transform: rotate(90deg) scale(1.2);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.item-price {
    color: #e74c3c;
    font-size: 15px;
    font-weight: 600;
}

/* --- Plus / Minus Buttons --- */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qty-btn {
    background-color: #f1f2f6;
    border: none;
    color: #2f3542;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #3b665b;
    color: white;
    transform: scale(1.05);
}

.qty-num {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    color: #2c3e50;
}

.cart-footer {
    padding: 25px;
    background-color: #ffffff;
    border-top: 1px solid #f1f2f6;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

/* --- Find Order Section --- */
.find-order-section {
    padding: 20px;
    background-color: #f1f2f6;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid #e1e2e6;
}

#search-phone {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

#search-phone:focus {
    outline: none;
    border-color: #3b665b;
}

.btn-search {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

#found-order-details {
    padding: 20px;
    background-color: #e8f6f3;
    border-radius: 8px;
    border-left: 4px solid #1abc9c;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    margin-top: 10px;
}

/* --- Checkout Button --- */
.cart-checkout-btn {
    width: 100%;
    margin-top: 15px;
    display: block;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        overflow-y: auto;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .cart-sidebar.open {
        right: 0;
    }
}