:root {
    --store-blue: #1687f8;
    --store-green: #20b978;
    --store-pink: #f05aa6;
    --store-text: #2c3440;
    --store-muted: #7c8796;
    --store-line: rgba(56, 74, 94, .11);
    --store-surface: rgba(255, 255, 255, .86);
}

body.storefront-body {
    min-height: 100vh;
    background-color: #dcecf0;
    background-image: linear-gradient(rgba(233, 246, 242, .28), rgba(219, 239, 242, .36)), var(--store-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--store-text);
}

.storefront-body .navbar-acg {
    min-height: 42px;
    padding: 3px 0;
    border: 0;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 10px rgba(25, 52, 71, .08);
    backdrop-filter: blur(12px);
}

.storefront-body .store-nav { max-width: 1040px; }
.storefront-body .brand-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.storefront-body .store-brand-name { color: #278d70; font-size: 13px; }
.storefront-body .navbar-acg .nav-link { padding: 8px 10px; color: #3e4853; font-size: 12px; }
.storefront-body .navbar-acg .navbar-brand { font-size: 13px; }
.storefront-body .navbar-acg .btn { border-radius: 5px; }

.store-page { max-width: 1040px; }

.store-notice,
.store-search,
.store-catalog {
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 8px;
    background: var(--store-surface);
    box-shadow: 0 8px 28px rgba(33, 68, 84, .08);
    backdrop-filter: blur(13px);
}

.store-notice { padding: 17px 20px 20px; }
.store-notice__title,
.store-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: #303944;
    font-size: 13px;
    font-weight: 700;
}
.store-notice__title i { color: #ef5b69; }
.store-notice__content { margin-top: 8px; color: #53606d; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }

.store-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    margin-top: 10px;
    border-radius: 7px;
    background: var(--store-blue);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 8px 22px rgba(22, 135, 248, .2);
}

.store-search {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 58px;
    align-items: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 6px 7px 6px 12px;
}
.store-search > i { color: #84909d; font-size: 13px; }
.store-search input { min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; color: var(--store-text); font-size: 12px; }
.store-search input::placeholder { color: #a3abb4; }
.store-search button { height: 32px; border: 0; border-radius: 5px; background: var(--store-green); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }

.store-catalog {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    margin-top: 18px;
    overflow: hidden;
}
.store-categories { padding: 14px 12px; border-right: 1px solid var(--store-line); }
.store-section-title { padding: 0 7px 10px; }
.store-section-title i { color: #687482; }
.store-category-list { display: grid; gap: 3px; }
.store-category {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 42px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #4d5965;
    transition: background-color .15s ease, color .15s ease;
}
.store-category:hover { background: rgba(22, 135, 248, .07); color: var(--store-blue); }
.store-category.is-primary { background: rgba(22, 135, 248, .11); color: #0878e7; font-weight: 700; }
.store-category__icon { width: 20px; height: 20px; border-radius: 50%; background-position: center; background-size: cover; }
.store-category__name { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.store-category__count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff0f2; color: #ef6473; font-size: 10px; }

.store-products { min-width: 0; padding: 14px 15px 10px; }
.store-products__title small { margin-left: auto; color: var(--store-muted); font-size: 10px; font-weight: 400; }
.store-product-head,
.store-product {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 90px 78px 64px 58px;
    align-items: center;
    gap: 9px;
}
.store-product-head { min-height: 34px; padding: 0 10px; border-bottom: 1px solid var(--store-line); color: #818b96; font-size: 10px; }
.store-product {
    min-height: 54px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--store-line);
    color: var(--store-text);
    font-size: 11px;
    transition: background-color .15s ease;
}
.store-product:hover { background: rgba(255, 255, 255, .66); color: var(--store-text); }
.store-product__main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-product__main img { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #edf2f5; }
.store-product__copy { display: flex; flex-direction: column; min-width: 0; }
.store-product__copy strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.store-product__copy small { margin-top: 2px; color: #8b96a1; font-size: 9px; }
.store-product__price { color: var(--store-pink); font-weight: 700; }
.store-product__price b { margin-right: 1px; font-size: 9px; }
.store-product__stock { color: #22a46c; font-weight: 600; }
.store-product__stock i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #2ac17d; }
.store-product__stock.is-empty { color: #ee5665; }
.store-product__stock.is-empty i { background: #ee5665; }
.store-product__sold { color: #596572; }
.store-product__action { display: grid; place-items: center; width: 48px; height: 25px; border-radius: 5px; background: var(--store-blue); color: #fff; font-size: 10px; font-weight: 700; }
.store-product.is-soldout { cursor: default; opacity: .65; }
.store-product.is-soldout .store-product__action { background: #aeb6bf; }
.store-product-list .item-message { display: grid; place-items: center; min-height: 160px; color: var(--store-muted); font-size: 12px; }

@media (max-width: 991.98px) {
    .storefront-body .navbar-collapse { order: 3; flex-basis: 100%; }
    .store-catalog { grid-template-columns: 190px minmax(0, 1fr); }
    .store-product-head, .store-product { grid-template-columns: minmax(190px, 1fr) 72px 66px 48px; }
    .store-product-head span:nth-child(4), .store-product__sold { display: none; }
}

@media (max-width: 767.98px) {
    body.storefront-body { background-attachment: scroll; }
    .storefront-body .user-info-box, .storefront-body .user-login-box { top: 5px; }
    .store-page { padding-right: 10px; padding-left: 10px; }
    .store-notice { padding: 14px; }
    .store-notice__content { max-height: none; overflow: visible; }
    .store-ribbon { justify-content: flex-start; padding: 8px 12px; line-height: 1.45; }
    .store-catalog { display: block; margin-top: 12px; overflow: visible; }
    .store-categories { border-right: 0; border-bottom: 1px solid var(--store-line); }
    .store-category-list { display: grid; gap: 2px; overflow: visible; }
    .store-category {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        width: 100%;
        min-height: 40px;
        padding: 5px 7px;
        border: 0;
        background: transparent;
    }
    .store-category.is-primary { background: rgba(22, 135, 248, .1); }
    .store-category__name { white-space: normal; line-height: 1.35; }
    .store-products { padding: 13px 8px 7px; }
    .store-product-head { display: none; }
    .store-product { grid-template-columns: minmax(0, 1fr) auto 48px; min-height: 64px; padding: 8px 5px; }
    .store-product__stock, .store-product__sold { display: none; }
    .store-product__main img { width: 34px; height: 34px; }
    .store-product__copy strong { white-space: normal; line-height: 1.4; }
}

@media (max-width: 420px) {
    .storefront-body .store-brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .store-category, .store-product { transition: none; }
}
