/* Home Shop List — mobile-first styles                    */
/* Minimum supported viewport: 393px (iPhone 15 / Safari) */

/* ── Inter font (self-hosted) ─────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.9e494903d6b0.woff2") format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.4e2553027f1d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-latin.65850a373e25.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Base ─────────────────────────────────────────────── */
body {
    background: #f0f2f5;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ── Fixed-top navbar spacer ──────────────────────────── */
.navbar-spacer { height: 60px; }

/* ── Touch targets: 44×44pt (Apple HIG) — CTA only ───── */
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary { min-height: 44px; }

/* ── Checkbox ─────────────────────────────────────────── */
input[type="checkbox"].toggle-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0d6efd;
    margin: 0;
}

/* ── Category block (card) ────────────────────────────── */
.category-block {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    margin-bottom: 10px;
}

/* ── Category header ──────────────────────────────────── */
.category-header {
    cursor: pointer;
    user-select: none;
    padding: 0.875rem 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    transition: background 0.1s;
}

.category-header:active { background: #f5f7fa; }

.collapse-icon {
    color: #9ca3af;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.collapse-icon.bi-chevron-up { transform: rotate(180deg); }

/* ── Purchase item ────────────────────────────────────── */
.purchase-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    min-height: 56px;
    transition: opacity 0.15s;
}

.purchase-item.is-bought { opacity: 0.35; }

/* Clickable label expands tap target (view page) */
.purchase-item label {
    cursor: pointer;
    margin: 0;
    line-height: 1.35;
}

/* ── Add purchase button row ──────────────────────────── */
.add-purchase-wrap {
    padding: 0.625rem 1rem;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
}

/* ── Inline form accent (blue left border + tinted bg) ── */
.form-accent {
    border-left: 3px solid #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

/* ── Priority label (edit page category header) ───────── */
.priority-badge {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
}

/* ── Offline banner ───────────────────────────────────── */
#offline-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f59e0b;
    color: #fff;
    text-align: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1060;
    display: none;
}
