.actv-home {
    --actv-canvas: #f6f3ee;
    --actv-panel: #fff;
    --actv-card: #fff;
    --actv-ink: #292620;
    --actv-accent: #805335;
    --actv-price: #a43f32;
    --actv-gutter: clamp(10px, 1.5vw, 18px);
    --actv-gap: 12px;
    background-color: var(--actv-canvas);
    color: var(--actv-ink);
    font-family: 'Noto Sans TC', 'Noto Sans SC', 'Segoe UI', sans-serif;
    padding: 0 var(--actv-gutter) 36px;
}

.actv-home.actv-home-dark {
    --actv-canvas: #171614;
    --actv-panel: #22201d;
    --actv-card: #22201d;
    --actv-ink: #f6f1e9;
    --actv-accent: #d9b998;
    --actv-price: #f1a591;
}

body:has(.actv-home) #header {
    background-color: #161616 !important;
    border-bottom-color: transparent !important;
}

body:has(.actv-home) #header > table {
    width: calc(100% - 24px);
    max-width: 1440px;
    height: 64px !important;
    padding-block: 0;
}

body:has(.actv-home) #header + div {
    height: 65px !important;
}

body:has(.actv-home) #header a {
    color: #fff !important;
    text-decoration: none;
}

body:has(.actv-home) #header :is(#logo, #btnVerticalMenu, .SM_img) {
    filter: brightness(0) invert(1) !important;
}

body:has(.actv-home) #PanelSearchBox {
    width: 36%;
}

body:has(.actv-home) #PanelSearchBox table {
    width: 100%;
}

body:has(.actv-home) #header #tbxkeyword {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 40px;
    border-radius: 5px 0 0 5px;
    border: 0 !important;
    background: #fff !important;
    color: #15202b !important;
    font-size: 15px;
}

body:has(.actv-home) #PanelSearchBox img[onclick] {
    box-sizing: border-box;
    width: 44px;
    height: 40px;
    padding: 7px;
    object-fit: contain;
    border-radius: 0 5px 5px 0;
    filter: invert(1) contrast(2);
    mix-blend-mode: multiply;
}

body:has(.actv-home) #PanelSearchBox td:last-child {
    border-radius: 0 5px 5px 0;
    background-color: #e3dacc;
}

body:has(.actv-home) a:has(> #achowtv) {
    display: none !important;
}

.actv-home :is(a, input):focus-visible {
    outline: 2px solid #a87857;
    outline-offset: 3px;
}

.actv-home :is(.actv-home-section, .actv-home-hero) {
    max-width: 1440px;
    box-sizing: border-box;
    margin-inline: auto;
}

.actv-home .actv-home-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    margin-inline: calc(-1 * var(--actv-gutter));
    padding: 10px var(--actv-gutter);
    padding-inline-start: calc(max(12px, (100% - 1440px) / 2 + var(--actv-gutter)) + 11px);
    background-color: #252320;
    overflow-x: auto;
    scrollbar-width: thin;
}

.actv-home .actv-home-nav a {
    flex: 0 0 auto;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.actv-home .actv-home-nav a:hover {
    color: #d9b998;
}

.actv-home .actv-home-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 20px;
    min-height: 180px;
    padding: 24px;
    background: linear-gradient(112deg, #f0eae0, #e3dacc);
    border-radius: 0 0 16px 16px;
    color: #292620;
}

.actv-home .actv-home-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
    letter-spacing: -.03em;
}

.actv-home .actv-home-brand-name {
    font-size: .72em;
    font-weight: 600;
    letter-spacing: 0;
}

.actv-home .actv-home-hero p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
}

.actv-home .actv-home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.actv-home .actv-home-hero-actions a {
    color: #625b51;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.actv-home .actv-home-shop-now {
    padding: 10px 22px;
    border-radius: 10px;
    background-color: #161616;
    color: #fff !important;
}

.actv-home .actv-home-hero-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    max-width: 380px;
    justify-self: end;
}

.actv-home .actv-home-hero-products a {
    display: block;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(75, 52, 34, .1);
}

.actv-home .actv-home-hero-products a:nth-child(2) {
    transform: translateY(-6px);
}

.actv-home .actv-home-hero-products img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.actv-home .actv-home-section {
    padding: var(--actv-gutter);
    background-color: var(--actv-panel);
    border-radius: 12px;
    margin-block-start: 14px;
}

.actv-home .actv-home-title {
    margin: 0 0 var(--actv-gap);
    color: var(--actv-ink);
    font-size: 18px;
    line-height: 1.25;
}

.actv-home .actv-home-title img {
    vertical-align: middle;
}

.actv-home .actv-home-carousel {
    container: actv-feature / inline-size;
    text-align: center;
}

.actv-home .actv-home-carousel .MaxWidth1200 {
    margin-inline: auto;
}

.actv-home .actv-home-carousel .EndorseBlock {
    --actv-visible-cards: 2;
    display: flex;
    gap: var(--actv-gap);
    scroll-snap-type: x mandatory;
}

@container actv-feature (min-width: 490px) {
    .actv-home .actv-home-carousel .EndorseBlock { --actv-visible-cards: 3; }
}

@container actv-feature (min-width: 660px) {
    .actv-home .actv-home-carousel .EndorseBlock { --actv-visible-cards: 4; }
}

@container actv-feature (min-width: 840px) {
    .actv-home .actv-home-carousel .EndorseBlock { --actv-visible-cards: 5; }
}

@container actv-feature (min-width: 1050px) {
    .actv-home .actv-home-carousel .EndorseBlock { --actv-visible-cards: 6; }
}

.actv-home .actv-home-carousel .EndorseBlock > .pointer {
    display: flex;
    flex: 0 0 calc((100% + var(--actv-gap)) / var(--actv-visible-cards) - var(--actv-gap));
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: clamp(5px, 1vw, 12px) !important;
    white-space: normal;
    overflow-wrap: anywhere;
    scroll-snap-align: start;
}

.actv-home .actv-home-carousel .EndorseBlock > .pointer > div[onclick] > img:first-child {
    display: block;
    width: 100%;
    height: clamp(100px, 11vw, 136px);
    margin-block-end: 12px;
    background: #fff;
    border-radius: 10px;
    object-fit: contain;
}

.actv-home .actv-home-carousel .EndorseBlock > .pointer > div[onclick] > :is(br, img[src="/images/blank.gif"]) {
    display: none;
}

.actv-home .actv-home-carousel .EndorseBlock > .pointer .h10 {
    height: 6px;
}

.actv-home .actv-home-carousel .EndorseBlock > .pointer > div[onclick] > b > .font13_ {
    height: auto !important;
    min-height: 2.8em;
    line-height: 1.4;
    font-size: 14px;
}

.actv-home .actv-home-carousel .achow-home-product-rating {
    margin-block-start: auto;
}

.actv-home .actv-home-carousel .EndorseBlock:has(.achow-home-product-rating > .Tooltip) .achow-home-product-rating {
    min-height: 24px;
}

.actv-home :is(.actv-home-products, .actv-home-categories, .actv-home-shops, .actv-home-partners, .actv-home-live-grid) {
    display: grid;
    gap: var(--actv-gap);
}

.actv-home .actv-home-products {
    grid-template-columns: repeat(auto-fill, minmax(min(185px, 100%), 1fr));
}

.actv-home .actv-home-products > .pointer {
    display: flex;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    border-radius: 10px;
    background: var(--actv-card);
    box-shadow: 0 2px 12px rgba(41, 38, 32, .05);
    text-align: center;
    overflow-wrap: anywhere;
}

.actv-home .actv-home-products > .pointer > div[onclick] {
    display: flex;
    flex-direction: column;
    padding: clamp(6px, 1.2vw, 12px);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.actv-home .actv-home-products > .pointer > div[onclick] > a:first-child img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.actv-home .actv-home-products > .pointer > div[onclick] b.SM_font > div[style] {
    height: auto !important;
    min-height: 2.8em;
    line-height: 1.4;
}

.actv-home .actv-home-product-rating {
    margin-block-start: auto;
    padding-block: 4px;
}

.actv-home .actv-home-products:has(.actv-home-product-rating > .Tooltip) .actv-home-product-rating {
    min-height: 24px;
}

.actv-home .actv-home-products:has(div[onclick] > font.font13:not(:empty)) > .pointer > div[onclick] > font.font13 {
    display: block;
    line-height: 1.45;
    min-height: 1lh;
}

.actv-home :is(.achow-home-product-rating, .actv-home-product-rating) > img {
    vertical-align: middle;
}

.actv-home :is(.actv-home-products, .actv-home-carousel, .actv-home-live-offers) .SM_font_red_ {
    color: var(--actv-price) !important;
}

.actv-home :is(.actv-home-products, .actv-home-carousel, .actv-home-live-offers) .SM_red {
    display: inline-block;
    border-radius: 4px;
    background-color: #a43f32 !important;
}

.actv-home :is(.actv-home-products, .actv-home-carousel) pre {
    display: none;
}

.actv-home .actv-home-categories a {
    color: var(--actv-accent) !important;
    text-decoration: none;
    word-break: normal;
}

.actv-home :is(.actv-home-categories, .actv-home-products, .actv-home-carousel) a:hover {
    color: var(--actv-accent);
    filter: brightness(.88);
    text-decoration: none;
}

.actv-home .actv-home-categories {
    grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
}

.actv-home .actv-home-categories > .pointer {
    width: auto !important;
    min-height: 0 !important;
    padding: 10px !important;
    border: 0 !important;
    border-radius: 10px;
    background: #ece5da;
    overflow-wrap: anywhere;
}

.actv-home .actv-home-categories > .pointer:nth-child(5n + 2) { background: #f3e9dc; }
.actv-home .actv-home-categories > .pointer:nth-child(5n + 3) { background: #ebe5ed; }
.actv-home .actv-home-categories > .pointer:nth-child(5n + 4) { background: #e8ecdf; }
.actv-home .actv-home-categories > .pointer:nth-child(5n + 5) { background: #f2e4df; }

.actv-home .actv-home-categories a {
    color: #62503e !important;
    font-size: 13px;
    line-height: 1.5;
}

.actv-home .actv-home-categories > .pointer > div font {
    font-size: 14px;
}

.actv-home .actv-home-categories > .pointer > .h20 {
    height: 10px;
}

.actv-home .actv-home-categories > .pointer > center img {
    width: 56px;
    height: 56px;
    max-width: 42%;
    margin-inline: 2px;
    object-fit: contain;
}

.actv-home .actv-home-categories > .pointer > img[src="/images/blank.gif"] {
    height: 10px;
}

.actv-home :is(.actv-home-shops, .actv-home-live-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.actv-home .actv-home-shop {
    padding: var(--actv-gap);
    border-radius: 4px;
    background-color: var(--actv-canvas);
}

.actv-home .actv-home-shop-logo {
    margin-block-end: var(--actv-gap);
    text-align: center;
}

.actv-home .actv-home-shop-logo img {
    margin-block: 0;
    max-width: 100%;
    object-fit: contain;
}

.actv-home .actv-home-shop .actv-home-products {
    grid-template-columns: repeat(auto-fill, minmax(min(145px, 100%), 1fr));
}

.actv-home .actv-home-shop .actv-home-products > .pointer {
    background-color: var(--actv-panel);
}

.actv-home .actv-home-partners {
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
}

.actv-home .actv-home-partners a {
    display: grid;
    place-items: center;
    min-height: 86px;
    background-color: #fff;
    border-radius: 10px;
    padding: 6px;
}

.actv-home .actv-home-partners img {
    margin: 0;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.actv-home .actv-home-live-video {
    text-align: center;
}

.actv-home .actv-home-live-video #TopBanner_ {
    max-width: 100%;
}

.actv-home #TopBanner > .posAbs:is(.mobilehide, .mobileshow) {
    background-color: var(--actv-panel) !important;
}

.actv-home .actv-home-live-offer {
    margin-block-end: 10px;
    background-color: var(--actv-card);
    border-radius: 12px;
}

.actv-home .actv-home-live-offer img.freeImage {
    max-width: 20vw;
    border-radius: 8px;
}

@media (max-width: 820px) {
    .actv-home :is(.actv-home-shops, .actv-home-live-grid) {
        grid-template-columns: minmax(0, 1fr);
    }

    .actv-home .actv-home-hero-products {
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .actv-home .actv-home-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .actv-home .actv-home-hero-products {
        width: 100%;
        max-width: 240px;
        justify-self: start;
    }

    .actv-home :is(.actv-home-products, .actv-home-categories, .actv-home-shop .actv-home-products) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
