﻿<style >
.wrapper {
    display: flex;
    gap: 25px;
    max-width: 1100px;
    width: 100%;
    align-items: flex-start;
}

/* Catalog Styling */
.catalog-box {
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.product-thumb {
    width: 150px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-info {
    flex-grow: 1;
}

.price-tag {
    font-weight: bold;
    color: #ff6b52;
    margin-top: 5px;
}

.add-btn {
    background: linear-gradient(90deg, #ff8a75, #ff6b52);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}



/* .row {
                                                display: flex;
                                                justify-content: space-between;
                                                padding: 10px 0;
                                                font-size: 14px;
                                                border-bottom: 1px solid #f9f9f9;
                                            } */

/* --- SLIDING DRAWER STYLES --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 999;
}

.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    padding: 30px;
    box-sizing: border-box;
}

    .drawer.open {
        right: 0;
    }

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
}

.drawer h2 {
    color: #002d5b;
    margin-top: 0;
}

.drawer input, .drawer textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.save-btn {
    width: 100%;
    background: #002d5b;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.close-drawer {
    cursor: pointer;
    font-size: 24px;
    float: right;
    color: #999;
}

.summary-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.product-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f0f0f0; /* Fallback color */
}

.product-info {
    flex: 1;
}

.product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.product-qty {
    font-size: 12px;
    color: #777;
}

.product-price {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.total-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f9f9f9;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.grand-total {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
}

.price-text {
    color: #ff7043;
}
/* Delete Icon Style */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4d4d;
    padding: 5px;
    transition: transform 0.2s ease;
}

    .delete-btn:hover {
        transform: scale(1.2);
        color: #cc0000;
    }

</style >
