
/* Case Project 5 Shopping Cart CSS (Updated to match Case Project 5 palette) */

/* Card containers */
.intro-card,
.shipping-card,
.summary-card,
.cart-card,
.empty-cart,
.total-box {
    background-color: #EEDCB5;            /* matches wrapper panel */
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 5px 5px 5px #CBB7A2;
    border: 1px solid rgba(163, 95, 69, 0.18);
    color: #BF7154;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0 40px;
}

/* Product cards */
.product-card {
    background-color: #C9C0B9;          /* matches main panel area */
    border-radius: 12px;
    padding: 18px;
    box-shadow: 5px 5px 5px rgba(203, 183, 162, 0.55);
    border: 1px solid rgba(107, 63, 43, 0.12);
}

.product-card p {
    margin: 8px 0;
    color: #6B3F2B;
}

/* Labels */
label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6B3F2B;
}

/* Form fields */
select,
input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #6f5d5f;
    border-radius: 4px;
    font-size: 15px;
    font-family: "Lucida Bright", Georgia, serif;
    background-color: rgba(255, 255, 255, 0.9);
    color: #6B3F2B;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

select:focus,
input:focus,
textarea:focus {
    border-color: #6B3F2B;
    box-shadow: 0 0 0 3px rgba(107, 63, 43, 0.15);
}

/* Cart row layout */
.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    border-bottom: 1px solid rgba(107, 63, 43, 0.25);
    padding: 15px 0;
    color: #6B3F2B;
}

.cart-row:last-child {
    border-bottom: none;
}

.cart-item-title {
    font-weight: bold;
    font-size: 17px;
    color: #b66b49;
}

.cart-price {
    font-weight: bold;
    color: #BF7154;
}

/* Buttons (cart-specific button elements) */
.product-card button,
.cart-row button,
.cart-actions button,
.cart-card button {
    margin-top: 16px;
    display: inline-block;
    padding: 12px 22px;
    background-color: #BF7154;
    color: #fff;
    border: 2px solid #A35F45;
    border-radius: 999px;
    font-family: "Lucida Bright", Georgia, serif;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.product-card button:hover,
.cart-row button:hover,
.cart-actions button:hover,
.cart-card button:hover {
    background-color: #A35F45;
}

.product-card button:active,
.cart-row button:active,
.cart-actions button:active,
.cart-card button:active {
    transform: translateY(1px);
}

/* Actions + shipping + summary */
.cart-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.shipping-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(107, 63, 43, 0.18);
    color: #6B3F2B;
}

.summary-line:last-child {
    border-bottom: none;
}

/* Message box */
.message-box {
    margin-top: 18px;
    padding: 14px;
    background-color: rgba(255,255,255,0.65);
    border: 1px solid rgba(163, 95, 69, 0.25);
    border-radius: 8px;
    color: #6B3F2B;
}

/* Responsive */
@media (max-width: 900px) {
    .cart-row {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .shipping-layout {
        grid-template-columns: 1fr;
    }
}