.home {
    --home-accent: var(--theme-primary, #f4502f);
    --home-accent-2: var(--theme-secondary, #df4225);
    --home-accent-grad: linear-gradient(
        var(--theme-footer-angle, 269.98deg),
        var(--theme-footer-from, #f6402d) 0%,
        var(--theme-footer-to, #fe6232) 100%
    );
    --hl-accent: var(--theme-primary, #f4502f);
    --hl-accent-strong: var(--theme-secondary, var(--theme-btn-primary-hover, #df4225));
    --hl-border: color-mix(in srgb, var(--hl-accent) 10%, transparent);
    --hl-border-strong: color-mix(in srgb, var(--hl-accent) 18%, transparent);
    --hl-shadow-soft: 0 22px 48px color-mix(in srgb, var(--hl-accent) 10%, transparent);
}

/* Fallback core rules for modular home.
   Some storefronts render home modules through commerce/theme index.php,
   so these base rules must also exist in the public theme CSS. */
.home .hl-module,
.home .hl-module *,
.home .hl-module *::before,
.home .hl-module *::after {
    box-sizing: border-box;
}

.home .hl-module {
    position: relative;
    margin-bottom: 24px;
}

.home .hl-module:last-child {
    margin-bottom: 0;
}

.home .hl-module h1,
.home .hl-module h2,
.home .hl-module h3,
.home .hl-module h4,
.home .hl-module h5,
.home .hl-module h6,
.home .hl-module p,
.home .hl-module ul,
.home .hl-module ol {
    margin: 0;
}

.home .hl-module ul,
.home .hl-module ol {
    padding: 0;
    list-style: none;
}

.home .hl-module a {
    color: inherit;
    text-decoration: none;
}

.home .hl-module a:hover {
    text-decoration: none;
}

.home .hl-module img {
    display: block;
    max-width: 100%;
    height: auto;
}

.home .hl-module__shell {
    width: 100%;
    max-width: var(--home-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    padding-left: var(--home-pad-x, 16px);
    padding-right: var(--home-pad-x, 16px);
}

.home .hl-module__surface {
    /* background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); */
}

.home .hl-module__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home .hl-module__header-main {
    min-width: 0;
}

.home .hl-module__eyebrow {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home .hl-module__title {
    margin: 0;
    color: var(--hl-accent);
    font: 600 clamp(1.1rem, 0.96rem + 0.55vw, 1.4rem) "Prompt", sans-serif;
    line-height: 1.25;
}

.home .hl-module__meta {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.home .hl-module__header-link,
.home .hl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.home .hl-module__header-link:hover,
.home .hl-button:hover {
    transform: translateY(-1px);
}

.home .hl-module__header-link,
.home .hl-button--ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--hl-border-strong);
    color: #1f2937;
}

.home .hl-button--accent {
    background: var(--hl-accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(247, 67, 46, 0.18);
}

.home .hl-button--accent:hover {
    background: var(--hl-accent-strong);
    color: #fff;
}

.home .hl-module__footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.home .hl-module__empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--hl-border-strong);
    border-radius: 12px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 0.88rem;
}

.home .hl-product-list__body,
.home .hl-marketplace__surface,
.home .hl-category-grid__surface,
.home .hl-blog-feed__surface,
.home .hl-contact__surface {
    padding: 20px 16px 18px;
}

.home .hl-product-list__grid {
    display: grid;
    grid-template-columns: repeat(var(--hl-product-cols-mobile, 2), minmax(0, 1fr));
    gap: 18px;
}

.home .hl-product-list__controls {
    display: none;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.home .hl-product-list__track {
    position: relative;
}

.home .hl-product-list__carousel .tns-outer,
.home .hl-product-list__carousel .tns-carousel-inner {
    margin: 0;
}

.home .hl-product-list__carousel .tns-item {
    height: auto;
}

.home .hl-product-list__carousel .hl-product-grid__item {
    height: 100%;
}

.home .hl-product-grid__item {
    min-width: 0;
}

.home .hl-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--hl-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home .hl-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--hl-border-strong);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.home .hl-product-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, rgba(250, 250, 250, 1) 0%, rgba(244, 247, 250, 0.94) 100%);
    overflow: hidden;
}

.home .hl-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .hl-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.home .hl-product-card__title {
    margin: 0;
    min-height: 2.8em;
    font-size: 0.92rem;
    line-height: 1.45;
}

.home .hl-product-card__title a {
    color: #1f2937;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home .hl-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.82rem;
    color: #64748b;
}

.home .hl-product-card__value {
    color: var(--hl-accent);
    font-weight: 600;
}

.home .hl-rate-banner__surface {
    position: relative;
    overflow: hidden;
}

.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__surface--classic {
    padding: 22px 18px;
    color: #fff;
}

.home .hl-rate-banner__surface::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.home .hl-rate-banner__content {
    display: grid;
    gap: 20px;
    align-items: center;
}

.home .hl-rate-banner__intro,
.home .hl-rate-banner__main {
    position: relative;
    z-index: 1;
}

.home .hl-rate-banner__intro .hl-module__eyebrow,
.home .hl-rate-banner__intro .hl-module__title,
.home .hl-contact__header .hl-module__eyebrow,
.home .hl-contact__header .hl-module__title {
    color: inherit;
}

.home .hl-rate-banner__date,
.home .hl-contact__meta {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    line-height: 1.5;
}

.home .hl-rate-banner__value-group {
    display: grid;
    gap: 8px;
}

.home .hl-rate-banner__value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.home .hl-rate-banner__number {
    font-size: clamp(2.3rem, 1.8rem + 2vw, 3.6rem);
    line-height: 1;
    font-weight: 700;
}

.home .hl-rate-banner__unit {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 4px;
}

.home .hl-rate-banner__meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.home .hl-rate-banner__headline {
    margin: 0 0 10px;
    font: 600 clamp(1.25rem, 1rem + 0.8vw, 1.9rem) "Prompt", sans-serif;
    line-height: 1.25;
}

.home .hl-rate-banner__copy {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.home .hl-rate-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.home .hl-rate-banner__action {
    min-height: 46px;
}

.home .hl-rate-banner__figure {
    display: flex;
    justify-content: center;
}

.home .hl-rate-banner__image {
    width: min(220px, 100%);
    height: auto;
}

.home .hl-marketplace__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.home .hl-marketplace__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--hl-market-item-border, var(--hl-border));
    border-radius: 14px;
    background: var(--hl-market-item-bg, #fff);
    color: var(--hl-market-text, #1f2937);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home .hl-marketplace__item:hover {
    transform: translateY(-2px);
    border-color: var(--hl-border-strong);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.home .hl-marketplace__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
}

.home .hl-marketplace__logo {
    max-width: min(180px, 100%);
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home .hl-marketplace__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.home .hl-marketplace__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--hl-market-title, #1f2937);
}

.home .hl-marketplace__desc {
    color: var(--hl-market-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.6;
}

.home .hl-marketplace__cta {
    margin-top: auto;
    color: var(--hl-market-accent, var(--hl-accent));
    font-size: 0.88rem;
    font-weight: 600;
}

.home .hl-marketplace__caption {
    margin-top: 18px;
    font-size: 0.88rem;
    text-align: center;
    color: var(--hl-market-muted, #64748b);
    line-height: 1.6;
}

.home .hl-marketplace__grid.is-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.home .hl-marketplace__grid.is-slider .hl-marketplace__item {
    flex: 0 0 min(280px, 84vw);
    scroll-snap-align: start;
}

.home .hl-module--marketplace-strip .hl-marketplace__surface {
    background: var(--hl-market-surface-bg, transparent);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item {
    align-items: center;
    text-align: center;
}

/* variant layouts: marketplace-variants.css */

/* category_grid layout: ใช้ commerce/web/templates/css/category-grid-variants.css (คลาส hl-cat-*) */
/* blog_feed layout: ใช้ commerce/web/templates/css/blog-feed-variants.css (คลาส hl-blog-feed--*) */

.home .hl-blog-feed__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.home .hl-blog-feed__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hl-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home .hl-blog-feed__card:hover {
    transform: translateY(-2px);
    border-color: var(--hl-border-strong);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.home .hl-blog-feed__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: rgba(248, 250, 252, 0.9);
}

.home .hl-blog-feed__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .hl-blog-feed__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.home .hl-blog-feed__date {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home .hl-blog-feed__title {
    font-size: 1rem;
    line-height: 1.45;
}

.home .hl-blog-feed__title a {
    color: #1f2937;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home .hl-blog-feed__excerpt {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home .hl-blog-feed__link {
    margin-top: auto;
    color: var(--hl-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.home .hl-contact__surface {
    padding: 22px 18px;
    color: #fff;
}

.home .hl-contact__grid {
    display: grid;
    gap: 16px;
}

.home .hl-contact__panel {
    min-height: 100%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    padding: 18px 16px;
}

.home .hl-contact__panel-title {
    margin: 0 0 12px;
    font: 600 1rem "Prompt", sans-serif;
    color: #1f2937;
}

.home .hl-contact__panel-copy {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.home .hl-contact__qr {
    width: min(180px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
}

.home .hl-contact__actions {
    display: grid;
    gap: 12px;
}

.home .hl-contact__action {
    width: 100%;
    justify-content: space-between;
}

.home .hl-contact__info-block {
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.home .hl-contact__info-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.home .hl-contact__info-block + .hl-contact__info-block {
    margin-top: 16px;
}

.home .hl-contact__info-text {
    color: #64748b;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .home .hl-module__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home .hl-product-list__body,
    .home .hl-marketplace__surface,
    .home .hl-category-grid__surface,
    .home .hl-blog-feed__surface,
    .home .hl-contact__surface {
        padding: 18px 14px;
    }

    .home .hl-rate-banner__actions {
        flex-direction: column;
    }

    .home .hl-rate-banner__action {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .home .hl-marketplace__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .home .hl-product-list__page,
    .home .hl-product-list__grid {
        grid-template-columns: repeat(var(--hl-product-cols-tablet, 3), minmax(0, 1fr));
    }

    .home .hl-product-list__controls {
        display: flex;
    }
}

@media (min-width: 992px) {
    .home .hl-rate-banner__content {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(160px, 0.55fr);
    }

    .home .hl-product-list__page,
    .home .hl-product-list__grid {
        grid-template-columns: repeat(var(--hl-product-cols-desktop, 4), minmax(0, 1fr));
    }

    .home .hl-contact__grid {
        grid-template-columns: minmax(220px, 0.85fr) minmax(240px, 1fr) minmax(220px, 1fr);
        align-items: start;
    }
}


.home .hl-module--hero .home-hero-wrap {
    padding-bottom: 16px;
}

.home .hl-module--hero .home-hero__slider .slider,
.home .hl-module--hero .home-hero__slider .slide_viewer,
.home .hl-module--hero .home-hero__side,
.home .hl-module--hero .home-hero__side img,
.home .hl-module--hero .home-hero__side .home-hero__side-img {
    border-radius: 18px;
}

.home .hl-module--hero .home-hero__slider .slider {
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.16);
}

.home .hl-module--hero .home-hero__side {
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.home .hl-module--hero .home-hero__slider .slide_buttons {
    bottom: 12px;
}

.home .hl-module--hero .home-hero__slider .slide_buttons .slide_btn {
    text-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

.home .hl-module--shortcut-promo .hl-shortcut-stack {
    gap: 18px;
}

.home .hl-module--shortcut-promo .hl-shortcut-panel {
    border-color: rgba(244, 80, 47, 0.1);
}

.home .hl-module--shortcut-promo .hl-shortcut-panel--nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 244, 0.95) 100%);
}

.home .hl-module--shortcut-promo .hl-shortcut-panel--promo {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 244, 239, 0.94) 100%);
}

.home .hl-module--shortcut-promo .home-nav-icons .icon-home {
    background: linear-gradient(180deg, #ffffff 0%, #fff2ec 100%);
    border: 1px solid rgba(244, 80, 47, 0.16);
    box-shadow: 0 12px 24px rgba(244, 80, 47, 0.14);
}

.home .hl-module--shortcut-promo .home-nav-icons a:hover .icon-home {
    box-shadow: 0 16px 30px rgba(244, 80, 47, 0.2);
}

.home .hl-module--shortcut-promo .home-nav-icons .text-promotion,
.home .hl-module--shortcut-promo .home-nav-icons .text-promo-subhead,
.home .hl-module--shortcut-promo .home-nav-icons span:not(.icon-home) {
    font-weight: 500;
}

.home .hl-module--shortcut-promo .home-promo-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
}

.home .hl-module--shortcut-promo .home-promo-card__main {
    position: relative;
}

.home .hl-module--shortcut-promo .home-promo-card__main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.home .hl-module--shortcut-promo .home-promo-card__btn {
    background: rgba(17, 24, 39, 0.14);
    color: #fff;
    font-weight: 600;
}

.home .hl-module--product-list .hl-module__header {
    margin-bottom: 14px;
}

.home .hl-module--product-list .hl-module__eyebrow {
    color: rgba(244, 80, 47, 0.72);
}

.home .hl-module--product-list .hl-module__header-link {
    border-color: rgba(244, 80, 47, 0.18);
    color: var(--hl-accent);
    box-shadow: 0 12px 22px rgba(244, 80, 47, 0.12);
}

.home .hl-module--product-list .hl-product-list__body {
    border-color: rgba(244, 80, 47, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 244, 0.94) 100%);
}

.home .hl-module--product-list .hl-product-list__page,
.home .hl-module--product-list .hl-product-list__grid {
    gap: 18px;
}

.home .hl-module--product-list .hl-product-list__controls .tns-carousel-controls button {
    box-shadow: 0 10px 20px rgba(244, 80, 47, 0.12);
}

.home .hl-module--product-list .hl-product-list__controls .tns-carousel-controls button[disabled] {
    opacity: 0.4;
    box-shadow: none;
}

.home .hl-module--product-list .hl-product-card {
    border-color: rgba(244, 80, 47, 0.08);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.home .hl-module--product-list .hl-product-card__media {
    background: radial-gradient(circle at top, rgba(255, 241, 236, 0.95) 0%, rgba(255, 255, 255, 1) 78%);
}

.home .hl-module--product-list .hl-product-card__body {
    padding: 12px 14px 14px;
}

.home .hl-module--product-list .hl-product-card__title a:hover {
    color: var(--hl-accent-strong);
}

.home .hl-module--product-list .hl-product-card__meta {
    align-items: center;
    border-top: 1px solid rgba(244, 80, 47, 0.08);
    padding-top: 8px;
}

.home .hl-module--product-list .hl-button--accent {
    padding-left: 22px;
    padding-right: 22px;
}

.home .hl-module--rate-banner .hl-rate-banner__surface {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__headline,
.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__title {
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.16);
}

.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__intro,
.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__main {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

/* แบบใหม่ — ไม่ใช้สไตล์ส้มคลาสสิก */
.home .hl-module--rate-banner[data-hl-variant="ocean_card"] .hl-rate-banner__surface--ocean,
.home .hl-module--rate-banner[data-hl-variant="triple_rates"] .hl-rate-banner__surface--triple,
.home .hl-module--rate-banner[data-hl-variant="compact_strip"] .hl-rate-banner__surface--strip {
    color: #1f2937;
}

.home .hl-module--rate-banner[data-hl-variant="dark_luxe"] .hl-rate-banner__surface--dark {
    color: #f8fafc;
}

.home .hl-module--rate-banner[data-hl-variant="compact_strip"] .hl-rate-banner__rate-num,
.home .hl-module--rate-banner[data-hl-variant="ocean_card"] .hl-rate-banner__rate-num,
.home .hl-module--rate-banner[data-hl-variant="dark_luxe"] .hl-rate-banner__rate-num,
.home .hl-module--rate-banner[data-hl-variant="triple_rates"] .hl-rate-banner__rate-chip-value,
.home .hl-module--rate-banner .hl-rate-banner__rate-chip-value {
    color: var(--hl-rate-accent, var(--hl-accent, #f4502f));
    text-shadow: none;
}

.home .hl-module--rate-banner .hl-rate-banner__date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 6px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
}

.home .hl-module--rate-banner .hl-rate-banner__value-group {
    margin-top: 12px;
}

/* ปุ่ม ghost สีขาว — เฉพาะแบบส้มคลาสสิก (พื้นหลัง gradient) */
.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__action.hl-button--ghost {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.home .hl-module--rate-banner[data-hl-variant="classic_orange"] .hl-rate-banner__action.hl-button--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.home .hl-module--rate-banner .hl-rate-banner__figure {
    align-self: end;
}

.home .hl-module--rate-banner .hl-rate-banner__image {
    filter: drop-shadow(0 12px 26px rgba(15, 23, 42, 0.18));
}

.home .hl-module--marketplace-strip .hl-marketplace__surface {
    background: transparent;
}

.home .hl-module--marketplace-strip .hl-marketplace__item {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f4 100%);
    border-color: rgba(244, 80, 47, 0.1);
}

.home .hl-module--marketplace-strip .hl-marketplace__logo-wrap {
    width: 100%;
    min-height: 72px;
    border-radius: 14px;
    background: rgba(244, 80, 47, 0.04);
}

.home .hl-module--marketplace-strip .hl-marketplace__desc {
    color: rgba(107, 114, 128, 0.92);
}

.home .hl-module--marketplace-strip .hl-marketplace__cta {
    color: var(--hl-accent);
}

.home .hl-module--marketplace-strip .hl-marketplace__caption {
    color: rgba(107, 114, 128, 0.88);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid {
    gap: 10px;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__desc,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__cta {
    display: none;
}

.home .hl-module--marketplace-strip[data-hl-variant="soft_card"] .hl-marketplace__surface {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="soft_card"] .hl-marketplace__item {
    border-color: rgba(251, 146, 60, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__surface {
    background: radial-gradient(circle at top, #1f2937 0%, #0f172a 72%);
}

.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-module__eyebrow,
.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-module__title,
.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-module__meta,
.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__caption,
.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__label,
.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__desc {
    color: #e2e8f0;
}

.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__item {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.home .hl-module--marketplace-strip[data-hl-variant="glass_dark"] .hl-marketplace__logo-wrap {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
}

.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-marketplace__surface {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 40%, #7c3aed 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-marketplace__item {
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(15, 23, 42, 0.48);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.22), 0 14px 30px rgba(15, 23, 42, 0.35);
}

.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-marketplace__label,
.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-marketplace__desc,
.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-marketplace__caption,
.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-module__meta,
.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-module__title,
.home .hl-module--marketplace-strip[data-hl-variant="neon_strip"] .hl-module__eyebrow {
    color: #e0f2fe;
}

.home .hl-module--marketplace-strip[data-hl-variant="minimal_line"] .hl-marketplace__surface {
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.home .hl-module--marketplace-strip[data-hl-variant="minimal_line"] .hl-marketplace__item {
    border-width: 1px;
    border-color: #dbe4ef;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
}

.home .hl-module--marketplace-strip[data-hl-variant="warm_gradient"] .hl-marketplace__surface {
    background: linear-gradient(130deg, #fff7ed 0%, #ffedd5 48%, #ffe4e6 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="warm_gradient"] .hl-marketplace__item {
    border-color: rgba(249, 115, 22, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.home .hl-module--marketplace-strip[data-hl-variant="mono_split"] .hl-marketplace__surface {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="mono_split"] .hl-marketplace__item {
    border-color: rgba(30, 41, 59, 0.16);
    background: #fff;
}

.home .hl-module--marketplace-strip[data-hl-variant="mono_split"] .hl-marketplace__cta {
    color: #0f172a;
}

.home .hl-module--marketplace-strip[data-hl-variant="pastel_cloud"] .hl-marketplace__surface {
    background: linear-gradient(145deg, #eff6ff 0%, #f5f3ff 52%, #fdf2f8 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="pastel_cloud"] .hl-marketplace__item {
    border-color: rgba(167, 139, 250, 0.22);
    background: rgba(255, 255, 255, 0.88);
}

.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__surface {
    background: linear-gradient(140deg, #111827 0%, #1f2937 72%);
}

.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-module__eyebrow,
.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-module__title,
.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-module__meta,
.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__caption,
.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__label,
.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__desc {
    color: #f8fafc;
}

.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__item {
    border-color: rgba(251, 191, 36, 0.45);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(31, 41, 55, 0.9) 100%);
}

.home .hl-module--marketplace-strip[data-hl-variant="premium_gold"] .hl-marketplace__cta {
    color: #facc15;
}

.home .hl-module--category-grid .hl-category-grid__surface {
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 244, 0.95) 100%); */
}

/* สี accent ของ category_grid อยู่ใน category-grid-variants.css */

.home .hl-module--blog-feed .hl-blog-feed__surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 244, 0.95) 100%);
}

.home .hl-module--blog-feed .hl-blog-feed__card {
    border-color: rgba(244, 80, 47, 0.08);
}

.home .hl-module--blog-feed .hl-blog-feed__media {
    background: rgba(255, 242, 238, 0.7);
}

.home .hl-module--blog-feed .hl-blog-feed__date {
    color: rgba(244, 80, 47, 0.72);
}

.home .hl-module--blog-feed .hl-blog-feed__excerpt {
    color: rgba(107, 114, 128, 0.92);
}

.home .hl-module--blog-feed .hl-blog-feed__title a:hover {
    color: var(--hl-accent-strong);
}

.home .hl-module--blog-feed.is-blog-feed-empty .hl-blog-feed__empty {
    padding: 28px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(248, 250, 252, 0.92);
    text-align: center;
}

.home .hl-module--blog-feed .hl-blog-feed__empty-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.home .hl-module--blog-feed .hl-blog-feed__empty-text {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.home .hl-module--contact-block .hl-contact__surface {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.home .hl-module--contact-block .hl-contact__panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(244, 80, 47, 0.1);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.home .hl-module--contact-block .hl-contact__header {
    margin-bottom: 18px;
}

.home .hl-module--contact-block .hl-contact__title {
    color: #fff;
}

.home .hl-module--contact-block .hl-contact__meta {
    color: rgba(255, 255, 255, 0.88);
}

.home .hl-module--contact-block .hl-contact__panel-copy {
    color: rgba(107, 114, 128, 0.9);
}

.home .hl-module--contact-block .hl-contact__action {
    border-color: rgba(244, 80, 47, 0.16);
    color: var(--hl-accent);
}

.home .hl-module--contact-block .hl-contact__action:hover {
    background: rgba(255, 255, 255, 1);
}

.home .hl-module--contact-block .hl-contact__qr {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home .hl-module--contact-block .hl-contact__info-label {
    color: var(--hl-accent);
}

@media (min-width: 1200px) {
    .home .hl-module--shortcut-promo .hl-shortcut-panel {
        border-radius: 18px;
    }

    .home .hl-module--product-list .hl-product-list__body {
        padding: 22px 22px 18px;
    }

    .home .hl-module--rate-banner .hl-rate-banner__surface,
    .home .hl-module--contact-block .hl-contact__surface {
        border-radius: 20px;
    }
}

/* === Marketplace Strip variants → marketplace-variants.css + logo_wall template === */
.home .hl-module--marketplace-strip .hl-marketplace__item {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, opacity .24s ease;
}

/* logo_wall — minimal dock with hover tooltip + stagger reveal */
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock .hl-module__header {
    margin-bottom: 10px;
}

.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock .hl-module__title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    padding: 2px 0 4px;
    overflow: visible;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition:
        opacity 0.45s ease,
        transform 0.42s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    transition-delay: calc(var(--hl-mp-i, 0) * 48ms);
    scroll-snap-align: center;
    overflow: visible;
    z-index: 1;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"].is-revealed .hl-marketplace__item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:hover,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:focus-visible {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    border-color: rgba(244, 80, 47, 0.28);
    z-index: 4;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__orbit {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1.5px solid var(--hl-market-accent, #f4502f);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.34, 1.5, 0.64, 1);
    pointer-events: none;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:hover .hl-marketplace__orbit,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:focus-visible .hl-marketplace__orbit {
    opacity: 0.8;
    transform: scale(1);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__label {
    display: none;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__logo-wrap {
    min-height: unset;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__logo {
    max-width: 88%;
    max-height: 24px;
    filter: grayscale(0.2) saturate(0.88);
    transition: filter 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:hover .hl-marketplace__logo,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:focus-visible .hl-marketplace__logo {
    filter: grayscale(0) saturate(1.08);
    transform: scale(1.06);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__logo-fallback {
    min-width: unset;
    min-height: unset;
    padding: 0;
    background: transparent;
    font-size: 0.64rem;
    font-weight: 700;
    color: #64748b;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__tip {
    position: absolute;
    left: 50%;
    top: calc(100% + 7px);
    transform: translateX(-50%) translateY(4px);
    padding: 4px 9px;
    border-radius: 7px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.34, 1.35, 0.64, 1);
    z-index: 6;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #0f172a;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:hover .hl-marketplace__tip,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:focus-visible .hl-marketplace__tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid.is-slider {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 2px 2px 30px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid.is-slider .hl-marketplace__item {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
}

.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock .hl-marketplace__controls {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock:hover .hl-marketplace__controls,
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock:focus-within .hl-marketplace__controls {
    opacity: 1;
}

.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock .hl-marketplace__arrow {
    width: 30px;
    height: 30px;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item {
        opacity: 1;
        transform: none;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
        transition-delay: 0ms;
    }

    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:hover,
    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item:focus-visible {
        transform: none;
    }

    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__logo {
        filter: none;
        transition: none;
    }
}

@media (min-width: 768px) {
    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__item {
        width: 58px;
        height: 58px;
    }

    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid.is-slider .hl-marketplace__item {
        flex: 0 0 58px;
        width: 58px;
        height: 58px;
    }

    .home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__logo {
        max-height: 26px;
    }

}

/* polish: hide scrollbar + smooth scrolling for marketplace */
.home .hl-module--marketplace-strip .hl-marketplace__grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home .hl-module--marketplace-strip .hl-marketplace__grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.home .hl-module--marketplace-strip .hl-marketplace__grid.is-slider,
.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid.is-slider {
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    mask-image: none;
    -webkit-mask-image: none;
}

.home .hl-module--marketplace-strip[data-hl-variant="logo_wall"] .hl-marketplace__grid.is-slider {
    overflow-x: auto;
    overflow-y: visible;
}

.home .hl-module--marketplace-strip .hl-marketplace__controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home .hl-module--marketplace-strip .hl-marketplace__arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--hl-market-item-border, rgba(15, 23, 42, 0.16));
    background: #fff;
    color: var(--hl-market-accent, #f4502f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home .hl-module--marketplace-strip .hl-marketplace__arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    background: #fff7f5;
}

.home .hl-module--marketplace-strip .hl-marketplace__arrow:active {
    transform: translateY(0);
}

.home .hl-module--marketplace-strip .hl-marketplace__arrow[disabled],
.home .hl-module--marketplace-strip .hl-marketplace__arrow[aria-disabled="true"] {
    opacity: .38;
    cursor: not-allowed;
    box-shadow: none;
    background: #f8fafc;
    color: #94a3b8;
    transform: none;
}

.home .hl-module--marketplace-strip .hl-marketplace__arrow[disabled]:hover,
.home .hl-module--marketplace-strip .hl-marketplace__arrow[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
}

.home .hl-module--marketplace-strip .hl-marketplace__item {
    justify-content: center;
    text-align: center;
}

.home .hl-module--marketplace-strip .hl-marketplace__logo-wrap {
    margin-left: auto;
    margin-right: auto;
}

/* marketplace_strip — open layout: ไม่ใช้กรอบ card รอบนอก (ทุกรูปแบบ) */
.home .hl-module--marketplace-strip .hl-module__surface,
.home .hl-module--marketplace-strip .hl-marketplace__surface,
.home .hl-module--marketplace-strip[data-hl-variant] .hl-marketplace__surface,
.home .hl-module--marketplace-strip.hl-marketplace--logo-wall-dock .hl-marketplace__surface {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

.home .hl-module--marketplace-strip .hl-module__shell {
    overflow: visible;
}

.home .hl-module--marketplace-strip .hl-module__header {
    margin-bottom: 12px;
}
