body.store-page {
    min-height: 100vh;
    margin: 0;
    background-color: #f8f1df;
    background-image: url('/images/bg-info-section.webp');
    background-repeat: repeat;
    background-size: 300px;
    color: #263a31;
    font-family: 'Noto Sans Thai', sans-serif;
}

.store-page-header {
    border-bottom: 3px solid #c69b45;
    background: radial-gradient(circle at center top, #337f57, #174d35 75%);
    box-shadow: 0 5px 18px rgba(10, 58, 39, .18);
}

.store-page-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 82px;
}

.store-home-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none !important;
}

.store-home-link:hover { opacity: .8; }
.store-brand img { width: 145px; }
.store-betagro { justify-self: end; width: 84px; }

.store-page-main { min-height: calc(100vh - 135px); }

.store-page-heading {
    max-width: 650px;
    margin: 0 auto;
    padding: 42px 20px 8px;
    text-align: center;
}

.store-page-heading img {
    display: block;
    width: min(100%, 390px);
    margin: 9px auto 8px;
}

.store-page-heading p {
    margin: 0;
    color: #617168;
    font-size: .9rem;
}

.store-page-eyebrow {
    color: #9a722a;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.store-page-footer {
    padding: 18px 0;
    background: #123f2d;
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
    text-align: center;
}

#storeData {
    --store-green: #075a3e;
    --store-green-soft: #eaf3ef;
    --store-gold: #b88a35;
    --store-border: #e8e2d6;
    padding-top: 28px;
    padding-bottom: 70px;
}

#storeData .store-panel {
    overflow: hidden;
    border: 1px solid rgba(184, 138, 53, .32);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 45px rgba(28, 66, 48, .1);
}

#storeData .store-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 0 22px;
    background: var(--store-green);
}

#storeData .store-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 4px solid transparent;
    outline: none;
    background: var(--store-green);
    color: rgba(255, 255, 255, .72);
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

#storeData .store-tab:hover,
#storeData .store-tab:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

#storeData .store-tab.is-active {
    border-bottom-color: var(--store-gold);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

#storeData .store-tab small {
    min-width: 25px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: .68rem;
    line-height: 1.4;
}

#storeData .store-tab.is-active small {
    background: var(--store-gold);
}

#storeData .official-stores {
    padding: 24px 22px 26px;
    border-bottom: 1px solid var(--store-border);
    background: linear-gradient(135deg, #fffaf0, #fff 50%, #edf5f1);
    text-align: center;
}

#storeData .official-stores[hidden],
#storeData .official-store-logo[hidden] {
    display: none;
}

#storeData .official-stores-heading {
    margin-bottom: 18px;
}

#storeData .official-stores-kicker {
    color: var(--store-gold);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .16em;
}

#storeData .official-stores-heading h2 {
    margin: 2px 0 0;
    color: var(--store-green);
    font-size: 1.1rem;
    font-weight: 900;
}

#storeData .official-store-logos {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
}

#storeData .official-store-logo {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 190px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid #e7dfd1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(28, 66, 48, .08);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#storeData a.official-store-logo:hover,
#storeData a.official-store-logo:focus-visible {
    border-color: currentColor;
    box-shadow: 0 12px 28px rgba(28, 66, 48, .14);
    text-decoration: none;
    transform: translateY(-3px);
}

#storeData .official-store-logo svg,
#storeData .official-store-logo img {
    width: 56px;
    height: 56px;
    margin-bottom: 9px;
    object-fit: contain;
}

#storeData .official-store-logo svg {
    fill: currentColor;
}

#storeData .official-store-logo strong {
    font-size: .9rem;
}

#storeData .official-store-shopee { color: #ee4d2d; }
#storeData .official-store-lazada { color: #0f146d; }
#storeData .official-store-tiktok { color: #111; }
#storeData .official-store-line { color: #06c755; }

#storeData .store-toolbar {
    display: grid;
    grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(160px, .75fr));
    gap: 14px;
    padding: 22px;
    background: linear-gradient(135deg, #f8f3e7 0%, #fff 55%, #edf5f1 100%);
}

#storeData .store-toolbar.is-search-only {
    grid-template-columns: 1fr;
}

#storeData .store-field label {
    display: block;
    margin-bottom: 6px;
    color: #53645c;
    font-size: .78rem;
    font-weight: 700;
}

#storeData .store-field[hidden] {
    display: none;
}

#storeData .store-field input,
#storeData .store-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #dcd5c8;
    border-radius: 12px;
    outline: none;
    background-color: #fff;
    color: #263a31;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#storeData .store-field input {
    padding: 0 14px 0 42px;
}

#storeData .store-field select {
    padding: 0 34px 0 13px;
    cursor: pointer;
}

#storeData .store-field input:focus,
#storeData .store-field select:focus {
    border-color: var(--store-gold);
    box-shadow: 0 0 0 3px rgba(184, 138, 53, .14);
}

#storeData .store-input-wrap {
    position: relative;
}

#storeData .store-input-wrap i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--store-gold);
    transform: translateY(-50%);
    pointer-events: none;
}

#storeData .store-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 8px 22px;
    border-top: 1px solid rgba(232, 226, 214, .7);
    border-bottom: 1px solid var(--store-border);
    color: #607168;
    font-size: .88rem;
}

#storeData .store-reset {
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: var(--store-green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#storeData .store-reset i {
    margin-right: 4px;
    font-size: .75rem;
}

#storeData .store-table-head,
#storeData .store-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
}

#storeData .store-table-head {
    min-height: 46px;
    padding: 0 22px;
    background: var(--store-green);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

#storeData .store-table-row {
    min-height: 58px;
    padding: 8px 22px;
    border-bottom: 1px solid #eeeae1;
    color: #283c33;
    transition: background-color .18s ease;
}

#storeData .store-table-row:last-child {
    border-bottom: 0;
}

#storeData .store-table-row:hover {
    background: #fbfaf6;
}

#storeData .store-name-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-right: 20px;
    font-weight: 600;
}

#storeData .store-name-link {
    color: #075a3e;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(198, 155, 69, .65);
    text-underline-offset: 3px;
}

#storeData .store-name-link:hover,
#storeData .store-name-link:focus-visible {
    color: #8d6a28;
}

#storeData .store-name-link-icon {
    margin-left: 7px;
    font-size: .68em;
    opacity: .72;
    vertical-align: .08em;
}

#storeData .store-row-number {
    flex: 0 0 31px;
    color: #b7aa90;
    font-size: .72rem;
    font-weight: 700;
}

#storeData .store-province-cell {
    justify-self: start;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--store-green-soft);
    color: var(--store-green);
    font-size: .78rem;
    font-weight: 700;
}

#storeData .store-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 20px;
    color: #738078;
    text-align: center;
}

#storeData .store-empty[hidden] {
    display: none;
}

#storeData .store-empty i {
    margin-bottom: 12px;
    color: #c9b78f;
    font-size: 2rem;
}

#storeData .store-empty strong {
    margin-bottom: 4px;
    color: var(--store-green);
}

#storeData .store-empty span {
    font-size: .85rem;
}

#storeData .store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    border-top: 1px solid var(--store-border);
}

#storeData .store-pagination[hidden] {
    display: none;
}

#storeData .store-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ded8cc;
    border-radius: 10px;
    background: #fff;
    color: #52645b;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

#storeData .store-pagination button:hover:not(:disabled),
#storeData .store-pagination button.is-active {
    border-color: var(--store-green);
    background: var(--store-green);
    color: #fff;
}

#storeData .store-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

#storeData .store-page-ellipsis {
    color: #998f7c;
}

@media (max-width: 767.98px) {
    .store-page-nav { min-height: 68px; }
    .store-brand img { width: 112px; }
    .store-betagro { width: 62px; }
    .store-home-link span { display: none; }
    .store-page-heading { padding-top: 28px; }

    #storeData {
        padding-top: 18px;
        padding-bottom: 45px;
    }

    #storeData .store-panel {
        border-radius: 18px;
    }

    #storeData .store-tabs {
        padding: 0 8px;
    }

    #storeData .store-tab {
        flex-direction: column;
        gap: 3px;
        min-height: 74px;
        padding: 8px 4px;
        font-size: .76rem;
        line-height: 1.25;
        text-align: center;
    }

    #storeData .store-tab small {
        font-size: .62rem;
    }

    #storeData .official-stores {
        padding: 20px 12px 22px;
    }

    #storeData .official-store-logos {
        gap: 8px;
    }

    #storeData .official-store-logo {
        min-height: 100px;
        padding: 10px 5px;
        border-radius: 14px;
    }

    #storeData .official-store-logo svg,
    #storeData .official-store-logo img {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
    }

    #storeData .official-store-logo strong {
        font-size: .72rem;
    }

    #storeData .store-toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
        padding: 16px;
    }

    #storeData .store-search-field {
        grid-column: 1 / -1;
    }

    #storeData .store-summary {
        padding-right: 16px;
        padding-left: 16px;
    }

    #storeData .store-table-head {
        display: none;
    }

    #storeData .store-table-row {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 66px;
        padding: 10px 16px;
    }

    #storeData .store-name-cell {
        padding-right: 10px;
        font-size: .88rem;
    }

    #storeData .store-row-number {
        flex-basis: 27px;
        font-size: .65rem;
    }

    #storeData .store-province-cell {
        max-width: 110px;
        overflow: hidden;
        font-size: .7rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    #storeData .store-tab i {
        display: none;
    }

    #storeData .store-tab {
        min-height: 68px;
        font-size: .7rem;
    }

    #storeData .official-store-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    #storeData .official-store-logo {
        max-width: none;
    }

    #storeData .store-toolbar {
        grid-template-columns: 1fr;
    }

    #storeData .store-search-field {
        grid-column: auto;
    }

    #storeData .store-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    #storeData .store-pagination {
        gap: 4px;
        padding-right: 8px;
        padding-left: 8px;
    }

    #storeData .store-pagination button {
        min-width: 32px;
        height: 34px;
    }
}
