:root {
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-primary: #2f5bea;
    --bs-primary-rgb: 47, 91, 234;
    --bs-link-color: #2f5bea;
    --bs-link-color-rgb: 47, 91, 234;
    --bs-body-bg: #f5f7fb;
    --sidebar-bg: #111a33;
    --sidebar-width: 250px;
}
.btn-primary { --bs-btn-bg: #2f5bea; --bs-btn-border-color: #2f5bea; --bs-btn-hover-bg: #2549c4; --bs-btn-hover-border-color: #2549c4; --bs-btn-active-bg: #1f3fae; }
.btn-outline-primary { --bs-btn-color: #2f5bea; --bs-btn-border-color: #2f5bea; --bs-btn-hover-bg: #2f5bea; --bs-btn-hover-border-color: #2f5bea; }
.text-primary { color: #2f5bea !important; }
.bg-primary { background-color: #2f5bea !important; }
.brand-mark { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; background: linear-gradient(135deg, #2f5bea, #7b5cff); color: #fff; font-size: 1rem; }
.card { border-radius: .75rem; }
.card-header { background: transparent; font-weight: 600; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; font-weight: 600; white-space: nowrap; }
.form-label { font-weight: 500; font-size: .9rem; }

/* Storefront */
.hero { background: linear-gradient(135deg, #1b2b6b 0%, #2f5bea 55%, #7b5cff 100%); color: #fff; border-radius: 1rem; }
.product-card { transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(17, 26, 51, .1) !important; }
.product-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: #eef1f8; border-radius: .75rem .75rem 0 0; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #b6bfd6; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-gallery { aspect-ratio: 1 / 1; background: #eef1f8; border-radius: 1rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.category-pill { border-radius: 2rem; }
.courier-option { cursor: pointer; transition: border-color .15s, background .15s; }
.courier-option:has(input:checked) { border-color: #2f5bea !important; background: rgba(47, 91, 234, .06); }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding-left: 1.5rem; padding-bottom: 1rem; border-left: 2px solid #e3e7f0; margin-left: .4rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .2rem; width: 12px; height: 12px; border-radius: 50%; background: #c3cbe0; }
.timeline li:first-child::before { background: #2f5bea; box-shadow: 0 0 0 4px rgba(47, 91, 234, .15); }

/* Back office */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--sidebar-width); background: var(--sidebar-bg) !important; color: #c8d0e7; flex-shrink: 0; }
@media (min-width: 992px) { .admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar-brand { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar-nav { padding: .5rem .75rem 2rem; }
.sidebar-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7ca3; padding: 1rem .75rem .35rem; }
.sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: .5rem; color: #c8d0e7; text-decoration: none; font-size: .9rem; }
.sidebar-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-link.active { background: #2f5bea; color: #fff; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e6e9f0; padding: .75rem 1.5rem; position: sticky; top: 0; z-index: 1020; }
.admin-content { padding: 1.5rem; }
@media (max-width: 575.98px) { .admin-content { padding: 1rem; } .admin-topbar { padding: .75rem 1rem; } }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: .65rem; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }
.matrix-table td { min-width: 170px; vertical-align: top; }
.slab { display: flex; justify-content: space-between; gap: .75rem; font-size: .85rem; padding: .15rem 0; }
.slab.inactive { color: #9aa3b5; text-decoration: line-through; }

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
}

/* Home banner slider */
.home-banner { border-radius: 1rem; overflow: hidden; }
.banner-slide { position: relative; aspect-ratio: 16 / 5.6; background: #1b2b6b; color: #fff; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem 3.5rem; max-width: 640px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0)); }
.banner-caption h2 { font-size: clamp(1.25rem, 3.2vw, 2.6rem); }
.banner-caption p { font-size: clamp(.85rem, 1.4vw, 1.15rem); }
@media (max-width: 575.98px) {
    .banner-slide { aspect-ratio: 4 / 3; }
    .banner-caption { padding: 1.25rem 1.5rem 2.25rem; max-width: none; background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05)); justify-content: flex-end; }
}

/* Category cards */
.category-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(17, 26, 51, .12) !important; }
.category-card-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3.5rem; }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-tone-0 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.cat-tone-1 { background: linear-gradient(135deg, #0d9488, #22c55e); }
.cat-tone-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.cat-tone-3 { background: linear-gradient(135deg, #d97706, #eab308); }

/* List view */
.product-row .product-thumb { border-radius: .75rem 0 0 .75rem; }
.fulfil-option { cursor: pointer; }
.fulfil-option:has(input:checked) { border-color: #2f5bea !important; background: rgba(47, 91, 234, .06); }
.category-thumb { width: 48px; height: 48px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
