﻿/* =========================================================================
   LLII Shop Theme — Lead Logistics Innovations, Inc.
   Shared styles for the public storefront (_PublicLayout) and the
   store "Create Order" shop page. Brand: red #C60404, charcoal #2E3339.
   ========================================================================= */

:root {
    --llii-red: #c60404;
    --llii-red-dark: #9e0303;
    --llii-red-soft: #fdecec;
    --llii-ink: #2e3339;
    --llii-ink-2: #4b525a;
    --llii-muted: #6b7280;
    --llii-line: #e5e7eb;
    --llii-bg: #f6f7f9;
    --llii-card: #ffffff;
    --llii-green: #15803d;
    --llii-radius: 14px;
    --llii-radius-sm: 10px;
    --llii-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --llii-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
    --llii-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --llii-font-head: 'Poppins', 'Inter', system-ui, sans-serif;
}

/* ---------- Base (public pages only) ---------- */
body.llii-public {
    font-family: var(--llii-font);
    color: var(--llii-ink);
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
}

    body.llii-public h1, body.llii-public h2, body.llii-public h3,
    body.llii-public h4, body.llii-public h5, body.llii-public h6 {
        font-family: var(--llii-font-head);
        color: var(--llii-ink);
        letter-spacing: -.01em;
    }

    body.llii-public a { color: var(--llii-red); }
    body.llii-public a:hover { color: var(--llii-red-dark); }
    body.llii-public .text-danger { color: var(--llii-red) !important; }
    body.llii-public .text-primary { color: var(--llii-red) !important; }
    body.llii-public .bg-primary { background-color: var(--llii-red) !important; }
    body.llii-public .btn-primary { background: var(--llii-red); border-color: var(--llii-red); color: #fff; }
    body.llii-public .btn-primary:hover { background: var(--llii-red-dark); border-color: var(--llii-red-dark); }

/* ---------- Buttons ---------- */
.llii-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
    line-height: 1.2;
    white-space: nowrap;
}

    .llii-btn:active { transform: translateY(1px); }
    .llii-btn:disabled { opacity: .55; cursor: not-allowed; }

.llii-btn-red { background: var(--llii-red); color: #fff !important; }
    .llii-btn-red:hover { background: var(--llii-red-dark); box-shadow: 0 6px 18px rgba(198, 4, 4, .28); }

.llii-btn-ghost { background: transparent; color: var(--llii-ink) !important; border-color: var(--llii-line); }
    .llii-btn-ghost:hover { border-color: var(--llii-ink); }

.llii-btn-light { background: #fff; color: var(--llii-ink) !important; }
    .llii-btn-light:hover { background: #f1f1f1; }

.llii-btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
    .llii-btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.llii-btn-block { width: 100%; }
.llii-btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ---------- Top bar + header ---------- */
.llii-topbar {
    background: var(--llii-ink);
    color: #d1d5db;
    font-size: .82rem;
}

    .llii-topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; gap: 1rem; }
    .llii-topbar a { color: #e5e7eb !important; text-decoration: none; }
    .llii-topbar a:hover { color: #fff !important; }
    .llii-topbar .llii-topbar-items { display: flex; gap: 1.4rem; flex-wrap: wrap; }
    .llii-topbar i { color: #f87171; margin-right: .35rem; }

.llii-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--llii-line);
}

    .llii-header .navbar { padding: .55rem 0; }
    .llii-header .llii-brand img { height: 60px; width: auto; display: block; }

    .llii-header .nav-link {
        color: var(--llii-ink) !important;
        font-weight: 500;
        font-size: .95rem;
        padding: .5rem .9rem !important;
        border-radius: 999px;
        transition: background .15s, color .15s;
    }

        .llii-header .nav-link:hover { background: var(--llii-bg); }
        .llii-header .nav-link.active { color: var(--llii-red) !important; font-weight: 600; }

    .llii-header .navbar-toggler { border: 1px solid var(--llii-line); border-radius: 10px; padding: .4rem .6rem; }
    .llii-header .navbar-toggler:focus { box-shadow: none; }

    .llii-header .llii-nav-cta { margin-left: .75rem; }

@media (max-width: 991.98px) {
    .llii-header .navbar-collapse { padding: .75rem 0 1rem; }
    .llii-header .llii-nav-cta { margin: .75rem 0 0; width: 100%; }
    .llii-topbar .llii-topbar-hide-sm { display: none; }
}

/* ---------- Page banner (inner pages) ---------- */
.llii-page-hero {
    position: relative;
    background: linear-gradient(100deg, rgba(20, 22, 26, .92) 0%, rgba(20, 22, 26, .72) 45%, rgba(20, 22, 26, .35) 100%), var(--llii-hero-img, none) center/cover no-repeat;
    color: #fff;
    padding: 4.5rem 0 4rem;
}

/* never let page-level styles box the banner */
body.llii-public .llii-page-hero, body.llii-public .llii-hero { max-width: none !important; width: 100%; margin: 0 !important; }

    .llii-page-hero h1 { color: #fff !important; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0 0 .5rem; }
    .llii-page-hero p { color: #d1d5db; max-width: 640px; margin: 0; font-size: 1.05rem; }
    .llii-page-hero .llii-crumbs { font-size: .85rem; color: #9ca3af; margin-bottom: .75rem; }
        .llii-page-hero .llii-crumbs a { color: #e5e7eb; text-decoration: none; }

/* ---------- Home hero ---------- */
.llii-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(95deg, rgba(14, 15, 18, .95) 0%, rgba(14, 15, 18, .8) 38%, rgba(14, 15, 18, .15) 75%), var(--llii-hero-img, none) center right/cover no-repeat;
    padding: 6.5rem 0 7rem;
    overflow: hidden;
}

    .llii-hero .llii-eyebrow {
        display: inline-flex; align-items: center; gap: .5rem;
        background: rgba(198, 4, 4, .18); border: 1px solid rgba(248, 113, 113, .45);
        color: #fecaca; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
        padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem;
    }

    .llii-hero h1 { color: #fff !important; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.1rem; max-width: 640px; }
        .llii-hero h1 span { color: #f87171; }
    .llii-hero p.lead { color: #d1d5db; font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
    .llii-hero .llii-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

    @media (max-width: 767.98px) {
        .llii-hero { background: linear-gradient(180deg, rgba(14, 15, 18, .78) 0%, rgba(14, 15, 18, .9) 100%), var(--llii-hero-img, none) center/cover no-repeat; padding: 4rem 0 5rem; }
        .llii-page-hero { background: linear-gradient(180deg, rgba(20, 22, 26, .85), rgba(20, 22, 26, .85)), var(--llii-hero-img, none) center/cover no-repeat; }
    }

    .llii-hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
        .llii-hero-stats div strong { display: block; font-family: var(--llii-font-head); font-size: 1.6rem; color: #fff; }
        .llii-hero-stats div span { font-size: .85rem; color: #9ca3af; }

/* ---------- Trust strip ---------- */
.llii-trust {
    background: #fff;
    border-bottom: 1px solid var(--llii-line);
    position: relative;
    margin-top: -2.5rem;
}

    .llii-trust .llii-trust-inner {
        background: #fff; border-radius: var(--llii-radius); box-shadow: var(--llii-shadow-lg);
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden;
        position: relative; z-index: 2;
    }

    .llii-trust .llii-trust-item { display: flex; gap: .9rem; align-items: center; padding: 1.4rem 1.5rem; border-right: 1px solid var(--llii-line); }
        .llii-trust .llii-trust-item:last-child { border-right: 0; }
        .llii-trust .llii-trust-item i { font-size: 1.4rem; color: var(--llii-red); background: var(--llii-red-soft); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
        .llii-trust .llii-trust-item strong { display: block; font-size: .95rem; }
        .llii-trust .llii-trust-item span { font-size: .82rem; color: var(--llii-muted); }

@media (max-width: 991.98px) {
    .llii-trust .llii-trust-inner { grid-template-columns: repeat(2, 1fr); }
    .llii-trust .llii-trust-item:nth-child(2) { border-right: 0; }
    .llii-trust .llii-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--llii-line); }
}

@media (max-width: 575.98px) {
    .llii-trust .llii-trust-inner { grid-template-columns: 1fr; }
    .llii-trust .llii-trust-item { border-right: 0; border-bottom: 1px solid var(--llii-line); }
}

/* ---------- Sections ---------- */
.llii-section { padding: 5rem 0; }
.llii-section-alt { background: var(--llii-bg); }
.llii-section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
    .llii-section-head .llii-kicker { color: var(--llii-red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; display: block; }
    .llii-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: .75rem; }
    .llii-section-head p { color: var(--llii-muted); margin: 0; }

/* Category tiles */
.llii-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }

.llii-cat-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
    background: #fff; border: 1px solid var(--llii-line); border-radius: var(--llii-radius);
    padding: 1.4rem 1.2rem; text-decoration: none !important; color: var(--llii-ink) !important;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

    .llii-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--llii-shadow-lg); border-color: transparent; }
    .llii-cat-tile .llii-cat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; }
    .llii-cat-tile strong { font-size: 1rem; }
    .llii-cat-tile small { color: var(--llii-muted); font-size: .8rem; margin-top: -.6rem; }

.llii-tone-red { background: #fdecec; color: #c60404; }
.llii-tone-blue { background: #e8f1fd; color: #1d4ed8; }
.llii-tone-cyan { background: #e0f7fa; color: #0e7490; }
.llii-tone-amber { background: #fef3c7; color: #b45309; }
.llii-tone-brown { background: #f3ebe4; color: #7c4a21; }
.llii-tone-green { background: #e7f6ec; color: #15803d; }
.llii-tone-violet { background: #efe9fd; color: #6d28d9; }
.llii-tone-slate { background: #eef0f3; color: #334155; }

/* Steps */
.llii-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.llii-step { background: #fff; border-radius: var(--llii-radius); padding: 1.6rem; border: 1px solid var(--llii-line); position: relative; }
    .llii-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--llii-font-head); font-weight: 700; font-size: .85rem; color: var(--llii-red); display: block; margin-bottom: .8rem; }
    .llii-step h5 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
    .llii-step p { font-size: .9rem; color: var(--llii-muted); margin: 0; }

@media (max-width: 991.98px) { .llii-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .llii-steps { grid-template-columns: 1fr; } }

/* Service cards */
.llii-svc-card { background: #fff; border-radius: var(--llii-radius); overflow: hidden; border: 1px solid var(--llii-line); height: 100%; transition: transform .18s, box-shadow .18s; }
    .llii-svc-card:hover { transform: translateY(-3px); box-shadow: var(--llii-shadow-lg); }
    .llii-svc-card .llii-svc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--llii-bg); }
        .llii-svc-card .llii-svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
    .llii-svc-card:hover .llii-svc-img img { transform: scale(1.04); }
    .llii-svc-card .llii-svc-body { padding: 1.2rem 1.3rem 1.4rem; }
        .llii-svc-card .llii-svc-body h5 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; }
        .llii-svc-card .llii-svc-body p { font-size: .9rem; color: var(--llii-muted); margin: 0; }

/* About split */
.llii-split-img { border-radius: var(--llii-radius); overflow: hidden; box-shadow: var(--llii-shadow-lg); }
    .llii-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.llii-check { list-style: none; padding: 0; margin: 1.5rem 0 0; }
    .llii-check li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
    .llii-check li i { color: var(--llii-red); margin-top: .25rem; }

/* CTA band */
.llii-cta {
    background: linear-gradient(120deg, var(--llii-red) 0%, #8f0202 100%);
    border-radius: 20px; color: #fff; padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    position: relative; overflow: hidden;
}

    .llii-cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.08); }
    .llii-cta h3 { color: #fff !important; font-weight: 700; margin: 0 0 .4rem; }
    .llii-cta p { color: #fee2e2; margin: 0; }

/* Clients */
.llii-clients img { max-width: 100%; height: auto; display: block; margin: 0 auto; filter: grayscale(15%); }

/* ---------- Footer ---------- */
.llii-footer { background: #15171a; color: #9ca3af; padding: 4rem 0 1.5rem; font-size: .92rem; }
    .llii-footer h6 { color: #fff !important; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--llii-font); font-weight: 700; }
    .llii-footer a { color: #9ca3af !important; text-decoration: none; }
        .llii-footer a:hover { color: #fff !important; }
    .llii-footer ul { list-style: none; padding: 0; margin: 0; }
        .llii-footer ul li { margin-bottom: .55rem; }
    .llii-footer .llii-footer-logo { height: 70px; width: auto; margin-bottom: 1rem; }
    .llii-footer .llii-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
        .llii-footer .llii-social a { width: 38px; height: 38px; border-radius: 50%; background: #23262b; display: grid; place-items: center; color: #e5e7eb !important; }
            .llii-footer .llii-social a:hover { background: var(--llii-red); }
            .llii-footer .llii-social a img { height: 16px; filter: brightness(0) invert(1); }
    .llii-footer .llii-footer-bottom { border-top: 1px solid #262a30; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
    .llii-footer .llii-contact li { display: flex; gap: .7rem; }
        .llii-footer .llii-contact li i { color: #f87171; margin-top: .2rem; width: 16px; }

.llii-back-top {
    position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--llii-red); color: #fff !important; display: grid; place-items: center;
    box-shadow: var(--llii-shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1040;
}

    .llii-back-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Legacy template content (About/Services/Careers…) ---------- */
body.llii-public .service-item { background: #fff; border: 1px solid var(--llii-line); border-radius: var(--llii-radius); box-shadow: none; transition: transform .18s, box-shadow .18s; height: 100%; }
    body.llii-public .service-item:hover { transform: translateY(-3px); box-shadow: var(--llii-shadow-lg); }
    body.llii-public .service-item img { border-radius: var(--llii-radius-sm); }
body.llii-public .container-xxl.py-5,
body.llii-public .container-fluid.py-5 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
body.llii-public h6.text-secondary.text-uppercase { color: var(--llii-red) !important; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
body.llii-public .back-to-top { display: none !important; }

/* ---------- Auth (login) ---------- */
.llii-auth { min-height: calc(100vh - 120px); display: grid; grid-template-columns: 1.05fr 1fr; background: var(--llii-bg); }

.llii-auth-visual {
    position: relative; color: #fff; padding: 3.5rem; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(180deg, rgba(14,15,18,.15) 0%, rgba(14,15,18,.85) 70%), var(--llii-hero-img, none) center/cover no-repeat;
}

    .llii-auth-visual h2 { color: #fff !important; font-size: 2rem; font-weight: 700; margin-bottom: .6rem; }
    .llii-auth-visual p { color: #d1d5db; max-width: 460px; }
    .llii-auth-visual ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
        .llii-auth-visual ul li { display: flex; gap: .6rem; align-items: center; color: #e5e7eb; font-size: .95rem; }
        .llii-auth-visual ul li i { color: #f87171; }

.llii-auth-panel { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.llii-auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: var(--llii-shadow-lg); padding: 2.5rem 2.25rem; }
    .llii-auth-card .llii-auth-logo { height: 64px; margin-bottom: 1.5rem; }
    .llii-auth-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .3rem; }
    .llii-auth-card .llii-sub { color: var(--llii-muted); margin-bottom: 1.8rem; font-size: .95rem; }
    .llii-auth-card label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--llii-ink-2); }

.llii-input-wrap { position: relative; }
    .llii-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
    .llii-input-wrap .form-control { padding: .8rem 2.75rem .8rem 2.6rem !important; border-radius: 12px !important; border: 1.5px solid var(--llii-line) !important; font-size: .95rem; box-shadow: none !important; text-align: left !important; background: #fff !important; }
        .llii-input-wrap .form-control:focus { border-color: var(--llii-red) !important; box-shadow: 0 0 0 4px rgba(198, 4, 4, .1) !important; }
    .llii-input-wrap .llii-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #9ca3af; padding: .4rem .5rem; }

.llii-auth-card .llii-legal { font-size: .78rem; color: var(--llii-muted); margin-top: 1.3rem; text-align: center; }

@media (max-width: 991.98px) {
    .llii-auth { grid-template-columns: 1fr; }
    .llii-auth-visual { min-height: 260px; padding: 2rem; }
}

/* =========================================================================
   SHOP (Create Order) — renders inside the logged-in sidebar layout
   ========================================================================= */
.shop-wrap { font-family: var(--llii-font); color: var(--llii-ink); padding: 18px 8px 40px; }
    .shop-wrap h1, .shop-wrap h2, .shop-wrap h3, .shop-wrap h4, .shop-wrap h5 { font-family: var(--llii-font-head); color: var(--llii-ink); }

.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
    .shop-head .shop-crumbs { font-size: .82rem; color: var(--llii-muted); margin-bottom: .25rem; }
    .shop-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
    .shop-head .shop-meta { display: flex; gap: .5rem; flex-wrap: wrap; }

.shop-chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--llii-line); border-radius: 999px; padding: .4rem .85rem; font-size: .82rem; color: var(--llii-ink-2); }
    .shop-chip i { color: var(--llii-red); }
    .shop-chip strong { color: var(--llii-ink); }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 1.25rem; align-items: start; }
@media (max-width: 1199.98px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-panel { background: #fff; border-radius: var(--llii-radius); box-shadow: var(--llii-shadow); border: 1px solid #eef0f2; }

/* Toolbar */
.shop-toolbar { padding: 1rem 1rem .25rem; position: sticky; top: 60px; z-index: 5; background: #fff; border-radius: var(--llii-radius) var(--llii-radius) 0 0; }
.shop-search { position: relative; }
    .shop-search i.fa-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
    .shop-search input { width: 100%; border: 1.5px solid var(--llii-line); border-radius: 12px; padding: .8rem 2.6rem .8rem 2.8rem; font-size: .95rem; outline: none; background: var(--llii-bg); transition: border-color .15s, background .15s; }
        .shop-search input:focus { border-color: var(--llii-red); background: #fff; box-shadow: 0 0 0 4px rgba(198,4,4,.08); }
    .shop-search .shop-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #9ca3af; display: none; }

.shop-cats { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem 0 .75rem; scrollbar-width: thin; }
.shop-cat {
    display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
    border: 1.5px solid var(--llii-line); background: #fff; color: var(--llii-ink-2);
    border-radius: 999px; padding: .45rem .95rem; font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .15s;
}

    .shop-cat:hover { border-color: #cbd0d6; color: var(--llii-ink); }
    .shop-cat.active { background: var(--llii-ink); border-color: var(--llii-ink); color: #fff; }
    .shop-cat .shop-cat-count { background: rgba(0,0,0,.07); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
    .shop-cat.active .shop-cat-count { background: rgba(255,255,255,.18); }

.shop-results-bar { display: flex; justify-content: space-between; align-items: center; padding: .2rem 1rem .9rem; font-size: .85rem; color: var(--llii-muted); border-bottom: 1px solid #f0f1f3; }
    .shop-results-bar select { border: 1px solid var(--llii-line); border-radius: 8px; padding: .3rem .5rem; font-size: .85rem; color: var(--llii-ink); background: #fff; }

/* Product grid */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; }

.shop-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--llii-line); border-radius: var(--llii-radius); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; position: relative; }
    .shop-product:hover { box-shadow: var(--llii-shadow-lg); transform: translateY(-2px); border-color: transparent; }
    .shop-product.in-cart { border-color: #86efac; }

.shop-thumb { aspect-ratio: 4/3; background: var(--llii-bg); display: grid; place-items: center; position: relative; overflow: hidden; }
    .shop-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
    .shop-thumb .shop-thumb-ph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; }
    .shop-thumb .shop-badge { position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
    .shop-thumb .shop-incart { position: absolute; top: 10px; right: 10px; background: var(--llii-green); color: #fff; font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; display: none; }
.shop-product.in-cart .shop-incart { display: inline-block; }

.shop-pbody { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
    .shop-pbody .shop-code { font-size: .74rem; color: var(--llii-muted); font-weight: 600; letter-spacing: .03em; }
    .shop-pbody .shop-name { font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--llii-ink); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.shop-actions { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: .7rem; }

.shop-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--llii-line); border-radius: 10px; overflow: hidden; height: 38px; flex-shrink: 0; }
    .shop-qty button { border: 0; background: #fff; width: 30px; height: 100%; color: var(--llii-ink-2); font-size: .9rem; }
        .shop-qty button:hover { background: var(--llii-bg); }
    .shop-qty input { width: 42px; border: 0; text-align: center; font-weight: 600; font-size: .9rem; height: 100%; outline: none; -moz-appearance: textfield; }
        .shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.shop-add { flex: 1; height: 38px; border: 0; border-radius: 10px; background: var(--llii-red); color: #fff; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background .15s; }
    .shop-add:hover { background: var(--llii-red-dark); }
    .shop-add:disabled { background: #e5e7eb; color: #6b7280; cursor: not-allowed; }
.shop-product.in-cart .shop-add { background: #e7f6ec; color: var(--llii-green); }

/* States */
.shop-empty { text-align: center; padding: 3.5rem 1rem; color: var(--llii-muted); grid-column: 1 / -1; }
    .shop-empty i { font-size: 2.4rem; color: #d1d5db; margin-bottom: .8rem; display: block; }
    .shop-empty strong { display: block; color: var(--llii-ink); font-size: 1.05rem; margin-bottom: .25rem; }

.shop-skel { border: 1px solid var(--llii-line); border-radius: var(--llii-radius); overflow: hidden; }
    .shop-skel div { background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%); background-size: 400% 100%; animation: shopShimmer 1.3s ease infinite; }
    .shop-skel .a { aspect-ratio: 4/3; }
    .shop-skel .b { height: 12px; margin: 14px 14px 8px; border-radius: 6px; width: 40%; }
    .shop-skel .c { height: 14px; margin: 0 14px 16px; border-radius: 6px; width: 80%; }
@keyframes shopShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.shop-more { text-align: center; padding: 0 1rem 1.25rem; }

/* Cart */
.shop-cart { position: sticky; top: 72px; display: flex; flex-direction: column; max-height: calc(100vh - 90px); }
.shop-cart-head { padding: 1.1rem 1.2rem; border-bottom: 1px solid #f0f1f3; display: flex; justify-content: space-between; align-items: center; }
    .shop-cart-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
    .shop-cart-head .shop-count { background: var(--llii-red); color: #fff; font-size: .75rem; border-radius: 999px; padding: .1rem .55rem; font-family: var(--llii-font); }
    .shop-cart-head .shop-orderno { font-size: .8rem; color: var(--llii-muted); }

.shop-cart-items { overflow-y: auto; padding: .4rem 1.2rem; flex: 1; min-height: 120px; }
.shop-line { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px dashed #eceef1; align-items: center; }
    .shop-line:last-child { border-bottom: 0; }
    .shop-line .shop-line-img { width: 46px; height: 46px; border-radius: 10px; background: var(--llii-bg); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; color: #9ca3af; }
        .shop-line .shop-line-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
    .shop-line .shop-line-info { flex: 1; min-width: 0; }
    .shop-line .shop-line-name { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .shop-line .shop-line-sub { font-size: .76rem; color: var(--llii-muted); }
    .shop-line .shop-line-total { font-weight: 700; font-size: .88rem; text-align: right; white-space: nowrap; }
    .shop-line .shop-line-remove { border: 0; background: transparent; color: #9ca3af; font-size: .78rem; padding: 0; margin-top: .15rem; }
        .shop-line .shop-line-remove:hover { color: var(--llii-red); }

.shop-cart-empty { text-align: center; padding: 2rem 0 1.5rem; color: var(--llii-muted); font-size: .9rem; }
    .shop-cart-empty i { font-size: 2rem; color: #d1d5db; display: block; margin-bottom: .6rem; }

.shop-summary { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid #f0f1f3; background: #fbfbfc; border-radius: 0 0 var(--llii-radius) var(--llii-radius); }
.shop-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; padding: .35rem 0; gap: .75rem; }
    .shop-row span { color: var(--llii-muted); }
    .shop-row strong { color: var(--llii-ink); }
    .shop-row input[type=date] { border: 1px solid var(--llii-line); border-radius: 8px; padding: .25rem .45rem; font-size: .85rem; }
.shop-total { border-top: 1px solid var(--llii-line); margin-top: .5rem; padding-top: .8rem; }
    .shop-total span { color: var(--llii-ink); font-weight: 600; font-size: .95rem; }
    .shop-total strong { font-size: 1.35rem; font-family: var(--llii-font-head); color: var(--llii-red); }

/* switch */
.shop-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
    .shop-switch input { opacity: 0; width: 0; height: 0; }
    .shop-switch .s { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: .2s; cursor: pointer; }
        .shop-switch .s::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
    .shop-switch input:checked + .s { background: var(--llii-red); }
        .shop-switch input:checked + .s::before { transform: translateX(18px); }
    .shop-switch input:disabled + .s { opacity: .5; cursor: not-allowed; }

.shop-submit { margin-top: 1rem; width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--llii-red); color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: background .15s, box-shadow .15s; }
    .shop-submit:hover { background: var(--llii-red-dark); box-shadow: 0 8px 20px rgba(198,4,4,.25); }
    .shop-submit[hidden] { display: none; }
    .shop-submit:disabled { background: #e5e7eb; color: #9ca3af; box-shadow: none; cursor: not-allowed; }
.shop-draft { margin-top: .5rem; width: 100%; height: 44px; border: 1px solid var(--llii-line); border-radius: 12px; background: #fff; color: var(--llii-ink); font-weight: 600; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: border-color .15s, background .15s; }
    .shop-draft:hover { border-color: var(--llii-ink); background: #fafafa; }
    .shop-draft[hidden] { display: none; }
.shop-reorder { width: 100%; margin: .25rem 0 .75rem; padding: .65rem .8rem; border: 1px dashed var(--llii-red); border-radius: 12px; background: #fff7f7; color: var(--llii-ink); display: flex; align-items: center; gap: .7rem; text-align: left; transition: background .15s; }
    .shop-reorder:hover { background: #ffecec; }
    .shop-reorder i { color: var(--llii-red); font-size: 1.1rem; }
    .shop-reorder strong { display: block; font-size: .92rem; }
    .shop-reorder small { display: block; color: var(--llii-muted); font-size: .76rem; }
    .shop-reorder[hidden] { display: none; }
.reorder-list { text-align: left; max-height: 220px; overflow-y: auto; margin: .6rem 0 0; padding: 0; list-style: none; font-size: .88rem; }
    .reorder-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid #eee; }
    .reorder-list li span:last-child { white-space: nowrap; font-weight: 600; }
.shop-note { font-size: .75rem; color: var(--llii-muted); text-align: center; margin-top: .6rem; }

/* toast */
.shop-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--llii-ink); color: #fff; border-radius: 12px; padding: .75rem 1.1rem; font-size: .9rem; box-shadow: var(--llii-shadow-lg); opacity: 0; pointer-events: none; transition: all .25s; z-index: 2000; display: flex; align-items: center; gap: .6rem; }
    .shop-toast.show { opacity: 1; transform: translate(-50%, 0); }
    .shop-toast i { color: #4ade80; }

/* mobile cart fab */
.shop-cart-fab { display: none; }
@media (max-width: 1199.98px) {
    .shop-cart { position: static; max-height: none; }
    .shop-toolbar { top: 0; }
    .shop-cart-fab { display: inline-flex; position: fixed; right: 18px; bottom: 18px; z-index: 1500; background: var(--llii-red); color: #fff !important; border-radius: 999px; padding: .8rem 1.1rem; font-weight: 700; box-shadow: var(--llii-shadow-lg); text-decoration: none; gap: .5rem; align-items: center; }
}
