:root {
    --content-bg: #f5f5f5;
    --panel-bg: #ffffff;
    --panel-border: #e2e8f0;
    --accent: #0b7285;
    --muted: #4a5568;
}

* {
    box-sizing: border-box;
}

.content-header {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-header h2 {
    margin: 0;
}

.content-header h1 {
    margin: 0;
}

.subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.panel h2 {
    margin-top: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.card {
    background-color: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card h3 {
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.primary {
    background-color: var(--accent);
    color: #fff;
}

.ghost {
    background-color: #e2e8f0;
    color: #1f2933;
}

.accent {
    background-color: #0ea5e9;
    color: #fff;
}

.stack {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf2f7;
    color: var(--muted);
    font-size: 12px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-price {
    font-weight: 700;
    color: #0ea5e9;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr 70px 80px 30px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

input[type='number'] {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    padding: 8px;
    background: #fff;
    color: #1f2933;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-weight: 700;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal {
    background: #fff;
    border: 1px solid var(--panel-border);
    padding: 18px;
    border-radius: 12px;
    width: min(520px,90vw);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}
