/* BASE */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
}


/* MAIN GRID */

.order-wrapper {
    width: 90%;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
}


/* LEFT SIDE */

.left-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* SELECTED ITEMS */

.selected-products-box,
.related-products-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.selected-products-box h3,
.related-products-box h3 {
    margin-bottom: 15px;
    color: #0f5132;
    font-weight: bold;
}

.selected-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #f7fff5;
    border: 1px solid #d6f5d3;
}

.selected-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.title {
    margin: 0;
    font-weight: bold;
    color: #145a32;
}

.desc {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}


/* RELATED GRID */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-card {
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.related-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    margin: auto;
}

.pname {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.price {
    color: #0f5132;
    font-weight: bold;
    margin: 5px 0;
}

.related-card button {
    padding: 8px 14px;
    background: #0f5132;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.related-card button:hover {
    background: #0c3e27;
}


/* RIGHT SIDE FORM */

.right-side {
    height: fit-content;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.right-side h2 {
    color: #0f5132;
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.order-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #0f5132;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.order-btn:hover {
    background: #0c3e27;
}


/* RESPONSIVE */

@media (max-width: 992px) {
    .order-wrapper {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .selected-item {
        flex-direction: column;
        text-align: center;
    }
}
