/* inventory.css — Inventory page sections */

/* ---- Intro ---- */
.inv-intro { padding-block: var(--space-16) var(--space-10); background: var(--bg-page); }
.inv-intro__head { text-align: center; max-width: 820px; margin-inline: auto; }
.inv-intro__head .section-lede { color: var(--text-body); }

/* ---- Categories — alternating 2-col blocks ---- */
.inv-categories { padding-block: var(--space-10) var(--space-20); background: var(--bg-page); }

.inv-cat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--border-subtle);
}
.inv-cat:last-child { border-bottom: 0; }

/* Pin both items to row 1 so they sit side-by-side regardless of which
   column each is in (otherwise grid auto-flow stacks them vertically). */
.inv-cat__media         { grid-column: 1; grid-row: 1; }
.inv-cat__copy          { grid-column: 2; grid-row: 1; }
.inv-cat--reversed .inv-cat__media { grid-column: 2; }
.inv-cat--reversed .inv-cat__copy  { grid-column: 1; }

@media (max-width: 880px) {
    .inv-cat { grid-template-columns: 1fr; gap: var(--space-6); }
    .inv-cat__media,
    .inv-cat__copy,
    .inv-cat--reversed .inv-cat__media,
    .inv-cat--reversed .inv-cat__copy { grid-column: 1; grid-row: auto; }
}

/* Media tile */
.inv-cat__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-placeholder);
    box-shadow: 0 18px 36px rgba(15, 16, 17, 0.08);
}
.inv-cat__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 600ms ease;
}
.inv-cat:hover .inv-cat__media img { transform: scale(1.04); }

/* Brand-green icon disk — sits ON the bottom-left/right corner of the
   photo (inside the media bounds) so .inv-cat__media's overflow:hidden
   doesn't clip it. */
.inv-cat__icon {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--text-on-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-md);
    box-shadow: 0 6px 14px rgba(15, 16, 17, 0.40);
    border: 3px solid rgba(255, 255, 255, 0.95);
    z-index: 2;
    pointer-events: none;
}
/* Mirror to bottom-right on reversed rows */
.inv-cat--reversed .inv-cat__icon { left: auto; right: var(--space-5); }

/* Copy column */
.inv-cat__copy .eyebrow { color: var(--brand-primary); }
.inv-cat__title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
    margin: var(--space-2) 0 var(--space-4);
    line-height: 1.2;
}
.inv-cat__copy p {
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 var(--space-5);
}

/* Bullet list — green check markers */
.inv-cat__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}
.inv-cat__list li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--text-body);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.inv-cat__list li::before {
    content: '\f00c';                              /* fa-check */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
}
.inv-cat__list a {
    color: var(--brand-primary);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}
.inv-cat__list a:hover { text-decoration: underline; }

/* ---- Don't see it on the shelf? — dark CTA strip ---- */
.inv-source {
    padding-block: var(--space-16);
    color: var(--text-on-dark);
    background:
        linear-gradient(135deg, rgba(15,16,17,0.88) 0%, rgba(15,16,17,0.70) 100%),
        url('/assets/img/products/intro-home.jpg') center/cover no-repeat;
    isolation: isolate;
}
.inv-source__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-10);
    align-items: center;
}
@media (max-width: 880px) { .inv-source__inner { grid-template-columns: 1fr; } }
.inv-source h2 { color: var(--text-on-dark); margin: var(--space-2) 0 var(--space-4); }
.inv-source p { color: rgba(255,255,255,0.85); margin: 0; line-height: 1.6; max-width: 60ch; }
.inv-source__actions {
    display: flex; gap: var(--space-3); flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 880px) { .inv-source__actions { justify-content: flex-start; } }
.inv-source__actions .btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--text-on-dark);
}
.inv-source__actions .btn--ghost:hover {
    background: var(--text-on-dark);
    color: var(--text-strong);
    border-color: var(--text-on-dark);
}
.inv-source__actions .btn--ghost i { margin-right: var(--space-2); }
