/* ── Global ──────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ── Navbar ──────────────────────── */
.navbar-brand { letter-spacing: 1px; }
.cart-badge {
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    position: relative;
    top: -8px;
    left: -2px;
}

/* ── Product Card ────────────────── */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}
.product-card .card-title {
    font-size: 0.92rem;
    line-height: 1.4;
}

/* ── Product Detail ──────────────── */
.product-desc {
    line-height: 1.8;
    color: #444;
}

/* ── Sticky sidebar ──────────────── */
@media (max-width: 768px) {
    .sticky-top { position: relative !important; top: 0 !important; }
}

/* ── Category sidebar ────────────── */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ── Table ───────────────────────── */
.table th { font-weight: 600; font-size: 0.85rem; }
.table td { vertical-align: middle; }

/* ── Alert ───────────────────────── */
.alert { border-radius: 8px; }

/* ── Footer ──────────────────────── */
footer { margin-top: auto; }
