/* Clean storefront theme for ACG-Faka */

:root {
    --store-bg: #f5f7fb;
    --store-surface: #ffffff;
    --store-surface-soft: #f8fafc;
    --store-line: #dfe5ef;
    --store-text: #172033;
    --store-muted: #667085;
    --store-primary: #2563eb;
    --store-primary-dark: #1d4ed8;
    --store-accent: #14b8a6;
    --store-warm: #f97316;
    --store-danger: #e11d48;
    --store-shadow: 0 18px 48px rgba(20, 32, 54, .10);
}

html {
    font-size: 14px;
}

body.storefront {
    min-height: 100vh;
    color: var(--store-text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, .12), transparent 32rem),
        linear-gradient(180deg, #ffffff 0, var(--store-bg) 22rem, var(--store-bg) 100%);
}

a {
    text-decoration: none;
}

.navbar-acg {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(223, 229, 239, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-acg .navbar-brand {
    color: var(--store-text);
    font-size: 1.1rem;
    letter-spacing: 0;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--store-line);
}

.navbar-acg .nav-link {
    color: var(--store-muted);
    font-weight: 700;
    padding: .45rem .7rem;
}

.navbar-acg .nav-link.active,
.navbar-acg .nav-link:hover {
    color: var(--store-primary);
}

.navbar-acg .nav-link .nav-icon,
.navbar-acg .btn .nav-icon {
    margin-right: .35rem;
}

.user-login-box .btn,
.user-info-box .btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: var(--store-primary);
    border-color: var(--store-primary);
}

.btn-primary:hover {
    background: var(--store-primary-dark);
    border-color: var(--store-primary-dark);
}

.store-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 44px;
}

.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: stretch;
    min-height: 260px;
    padding: 34px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 46%),
        linear-gradient(180deg, #ffffff, #f9fbff);
    box-shadow: var(--store-shadow);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    color: var(--store-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 12px 0 10px;
    max-width: 760px;
    color: var(--store-text);
    font-size: 2.45rem;
    line-height: 1.12;
    font-weight: 900;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--store-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--store-text);
    font-weight: 800;
}

.hero-link:hover {
    color: #fff;
    background: #0f172a;
}

.hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    padding: 22px;
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(20, 184, 166, .92), rgba(37, 99, 235, .92)),
        url('/assets/admin/images/login/bg.jpg') center/cover;
    color: #fff;
}

.hero-card-label {
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .82rem;
    font-weight: 800;
}

.hero-card-title {
    margin-top: 18px;
    font-size: 1.3rem;
    font-weight: 900;
}

.hero-card-note {
    margin-top: 8px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.search-input {
    max-width: 330px;
}

.mobile-search {
    display: none;
    max-width: 420px;
}

.catalog-search {
    max-width: 320px;
}

.search-input .input-group-text,
.mobile-search .input-group-text,
.catalog-search .input-group-text {
    color: var(--store-muted);
    background: var(--store-surface);
    border: 1px solid var(--store-line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.search-input .form-control,
.mobile-search .form-control,
.catalog-search .form-control {
    height: 42px;
    border: 1px solid var(--store-line);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}

.search-input .form-control:focus,
.mobile-search .form-control:focus,
.catalog-search .form-control:focus,
.vstack .form-control:focus {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.notice-panel,
.catalog-panel,
.panel,
.cash-pay {
    margin-top: 18px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-surface);
    box-shadow: 0 10px 28px rgba(20, 32, 54, .06);
}

.section-heading,
.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--store-line);
}

.catalog-heading {
    justify-content: space-between;
}

.section-heading h2,
.panel-title {
    margin: 0;
    color: var(--store-text);
    font-size: 1.18rem;
    font-weight: 900;
}

.section-heading .icon,
.panel-header .icon,
.cash-pay .form-label i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--store-primary);
    background: rgba(37, 99, 235, .10);
}

.notice-content,
.panel-body {
    padding: 18px 20px;
    color: var(--store-muted);
    line-height: 1.7;
}

.notice-content p:last-child,
.panel-body p:last-child {
    margin-bottom: 0;
}

.catalog-body {
    padding: 18px 20px 20px;
}

.chip-list,
.sku-list,
.pay-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip,
.sku,
.pay-list .pay {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .8rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-surface-soft);
    color: var(--store-muted);
    font-weight: 800;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.chip:hover,
.sku:hover,
.pay-list .pay:hover {
    color: var(--store-primary);
    border-color: rgba(37, 99, 235, .35);
    transform: translateY(-1px);
}

.chip.is-primary,
.sku.is-primary,
.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected {
    color: #fff;
    background: var(--store-primary);
    border-color: var(--store-primary);
}

.chip .chip-icon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .5);
}

.item-list {
    margin-top: 18px;
}

.item-message,
.empty-state {
    width: 100%;
    padding: 28px;
    color: var(--store-muted);
    text-align: center;
}

.acg-card {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-surface);
    box-shadow: 0 12px 28px rgba(20, 32, 54, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.acg-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 18px 34px rgba(20, 32, 54, .12);
}

.acg-thumb {
    position: relative;
    height: 168px;
    background-color: #e8eef7;
}

.delivery-pill {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .78);
    font-size: .78rem;
    font-weight: 800;
}

.product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px;
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.badge-soft-primary {
    color: #075985;
    background: #e0f2fe;
}

.badge-soft-success {
    color: #047857;
    background: #d1fae5;
}

.badge-soft-muted {
    color: var(--store-muted);
    background: #eef2f7;
}

.badge-soft-danger {
    color: #be123c;
    background: #ffe4e6;
}

.badge-soft-warning,
.badge-soft-info {
    color: #92400e;
    background: #ffedd5;
}

.goods-title {
    min-height: 2.8em;
    margin: 0 0 16px;
    color: var(--store-text);
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    color: var(--store-danger);
    font-size: 1.55rem;
    font-weight: 900;
}

.price .unit {
    margin-right: 2px;
    color: var(--store-danger);
    font-size: .95rem;
    font-weight: 900;
}

.buy-hint {
    color: var(--store-primary);
    font-size: .86rem;
    font-weight: 900;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--store-line);
    color: var(--store-muted);
    font-size: .88rem;
    font-weight: 700;
}

.acg-card.soldout {
    filter: grayscale(.95);
}

.acg-card.soldout:hover {
    transform: none;
}

.soldout-ribbon {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--store-danger);
    font-size: .78rem;
    font-weight: 900;
}

.vstack label {
    color: var(--store-muted);
    font-weight: 800;
}

.vstack .form-control,
.captcha-img {
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-surface);
}

.captcha-input {
    border-radius: 8px 0 0 8px;
}

.captcha-img {
    border-left: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.input-group.qty-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140px;
    padding: 5px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-surface-soft);
}

.input-group.qty-group > button {
    width: 32px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--store-primary);
    font-weight: 900;
}

.input-group.qty-group > input[type="number"] {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    color: var(--store-text);
    font-weight: 900;
}

.input-group.qty-group > input[type="number"]::-webkit-outer-spin-button,
.input-group.qty-group > input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cash-pay {
    padding: 14px;
}

.cash-pay .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--store-text);
    font-weight: 900;
}

.pay-list .pay img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 5px;
}

.pay-list .pay span,
.pay-list .pay.is-primary span,
.pay-list .pay.active span,
.pay-list .pay.selected span {
    color: inherit;
    font-weight: 800;
}

.sku {
    position: relative;
}

.sku .badge-money,
.sku .badge-moeny {
    position: absolute;
    top: -14px;
    right: -10px;
    padding: 1px 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--store-warm);
    font-size: .72rem;
    font-weight: 900;
}

.item-detail {
    margin-top: 14px;
}

.item-detail .panel-body img {
    max-width: 100%;
}

.wholesale-table {
    width: 150px;
    background: transparent;
}

.wholesale-table > * > * > * {
    background: transparent !important;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border: 2px solid var(--store-line);
}

#userDropdown {
    padding: 4px 8px;
    border: none;
    background: transparent;
}

#userDropdown:hover {
    background: var(--store-surface-soft);
    border-radius: 8px;
}

.dropdown-menu {
    border: 1px solid var(--store-line);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(20, 32, 54, .12);
}

.dropdown-item {
    padding: 8px 16px;
    font-weight: 700;
}

.dropdown-item:hover {
    background: var(--store-surface-soft);
}

footer {
    padding: 24px 0;
    color: var(--store-muted);
    text-align: center;
}

@media (max-width: 991.98px) {
    .store-hero {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-search {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .store-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 16px;
    }

    .navbar-acg .container {
        position: relative;
    }

    .user-info-box,
    .user-login-box {
        position: absolute;
        right: 64px;
        top: 9px;
    }

    .user-login-box .btn-outline-secondary {
        display: none;
    }

    .mobile-search {
        display: flex;
        width: 100%;
    }

    .store-hero {
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-card {
        min-height: 170px;
    }

    .catalog-body,
    .notice-content,
    .panel-body {
        padding: 16px;
    }

    .section-heading,
    .panel-header {
        padding: 16px;
    }

    .acg-thumb {
        height: 132px;
    }
}

@media (max-width: 575.98px) {
    .hero-copy h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-link {
        justify-content: center;
        width: 100%;
    }

    .goods-title {
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: .001ms !important;
    }
}
