/* Sidaa Homepage — soft, full-width, compact (body.site-home only) */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

body.site-home {
    --c-bg: #f5f6f8;
    --c-surface: #ffffff;
    --c-text: #2d3748;
    --c-muted: #718096;
    --c-line: #e8ecf1;
    --c-blue: #3b82c4;
    --c-blue-soft: #eef4fb;
    --c-blue-line: #b8d4ef;
    --c-green: #5a9e7a;
    --c-green-soft: #f0f7f3;
    --c-green-line: #c5e0d0;
    --c-orange: #e8954a;
    --c-orange-soft: #fef6ee;
    --c-inner: 1360px;
    --c-gap: 14px;
    --c-r: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    background: var(--c-bg) !important;
    color: var(--c-text);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.site-home * {
    box-sizing: border-box;
}

/* ── Kill legacy layout constraints ── */
body.site-home #container {
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

body.site-home .content {
    margin: 0 !important;
    overflow: visible !important;
}

/* Header chrome: see /css/site-chrome.css (loaded in MainMaster) */

/* ── Main page ── */
body.site-home .home-page {
    max-width: var(--c-inner);
    margin: 0 auto;
    padding: 14px 16px 24px;
}

body.site-home .hm-block {
    margin-bottom: var(--c-gap);
}

body.site-home .hm-block:last-child {
    margin-bottom: 0;
}

body.site-home .hm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-line);
}

body.site-home .hm-head h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    font-family: inherit;
    line-height: 1.4;
}

body.site-home .hm-head h3 span {
    border: none;
    padding: 0;
    padding-right: 10px;
    position: relative;
}

body.site-home .hm-head--blue h3 span::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--c-blue);
    border-radius: 2px;
}

body.site-home .hm-head--green h3 span::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--c-green);
    border-radius: 2px;
}

body.site-home .hm-head--orange h3 span::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--c-orange);
    border-radius: 2px;
}

body.site-home .hm-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--c-r);
    padding: 12px;
    height: 100%;
}

body.site-home .hm-panel--accent-blue {
    border-top: 2px solid var(--c-blue-line);
}

body.site-home .hm-panel--accent-green {
    border-top: 2px solid var(--c-green-line);
}

/* ── Unified product card ── */
body.site-home .hm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--c-r);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.site-home .hm-card:hover {
    border-color: var(--c-blue-line);
    box-shadow: 0 2px 12px rgba(59, 130, 196, 0.1);
}

body.site-home .hm-card__img {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef1f5;
    margin: 0;
    padding: 0;
    line-height: 0;
}

body.site-home .hm-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

body.site-home .hm-card__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

body.site-home .hm-card__title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    min-height: 2.85em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.site-home .hm-card__title a {
    color: var(--c-text);
    text-decoration: none !important;
}

body.site-home .hm-card__title a:hover {
    color: var(--c-blue);
}

body.site-home .hm-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--c-line);
}

body.site-home .hm-card__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

body.site-home .hm-card__price-old {
    font-size: 10px;
    color: #a0aec0;
    text-decoration: line-through;
    line-height: 1.2;
}

body.site-home .hm-card__price-new {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-blue);
    white-space: nowrap;
}

body.site-home .hm-card__price-new.is-free {
    color: var(--c-green);
}

body.site-home .hm-card__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--c-blue-line);
    background: var(--c-blue-soft);
    color: var(--c-blue) !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

body.site-home .hm-card__btn:hover {
    background: var(--c-blue);
    color: #fff !important;
    border-color: var(--c-blue);
}

body.site-home .hm-card__cat {
    font-size: 10.5px;
    color: var(--c-muted);
}

body.site-home .hm-card__cat a {
    color: var(--c-muted) !important;
    text-decoration: none !important;
    background: var(--c-bg);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--c-line);
}

body.site-home .hm-card__desc {
    font-size: 11.5px;
    color: var(--c-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Legacy overrides (blue bar fix) ── */
body.site-home .product_options {
    background: transparent !important;
    height: auto !important;
    text-decoration: none !important;
    float: none !important;
}

body.site-home .product_price {
    float: none !important;
    color: inherit !important;
    text-shadow: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.site-home .product_price span.price_old {
    color: #a0aec0 !important;
}

body.site-home .product_name a {
    float: none !important;
    color: var(--c-muted) !important;
    padding: 0 !important;
    text-shadow: none !important;
}

body.site-home .purchase,
body.site-home .purchase2 {
    float: none !important;
    width: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Articles ── */
body.site-home .hm-article {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-line);
    align-items: flex-start;
}

body.site-home .hm-article:last-of-type {
    border-bottom: none;
}

body.site-home .hm-article__thumb {
    flex-shrink: 0;
    width: 48px;
    height: 62px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    display: block;
    line-height: 0;
}

body.site-home .hm-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.site-home .hm-article h6 {
    margin: 0 0 4px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

body.site-home .hm-article h6 a {
    color: var(--c-text);
    text-decoration: none !important;
}

body.site-home .hm-article h6 a:hover {
    color: var(--c-blue);
}

body.site-home .hm-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10.5px;
    color: var(--c-muted);
}

body.site-home .hm-article__meta .grp {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    padding: 1px 6px;
    border-radius: 4px;
}

body.site-home .hm-link-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-blue) !important;
    text-decoration: none !important;
}

body.site-home .hm-link-more:hover {
    text-decoration: underline !important;
}

/* ── View toggle ── */
body.site-home .hm-view-toggle {
    display: inline-flex;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    overflow: hidden;
}

body.site-home .hm-view-toggle button {
    border: none;
    background: var(--c-surface);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 11px;
    color: var(--c-muted);
    font-family: inherit;
    line-height: 1;
}

body.site-home .hm-view-toggle button.active {
    background: var(--c-blue-soft);
    color: var(--c-blue);
    font-weight: 600;
}

body.site-home .hm-view-toggle button + button {
    border-right: 1px solid var(--c-line);
}

/* Latest grid */
body.site-home .hm-latest-grid,
body.site-list .hm-latest-grid,
.hm-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.site-home .hm-latest-grid.hm-latest-grid--cols-3,
body.site-list .hm-latest-grid.hm-latest-grid--cols-3,
.hm-latest-grid.hm-latest-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

body.site-home .hm-latest-grid.hm-latest-grid--cols-5,
body.site-list .hm-latest-grid.hm-latest-grid--cols-5,
.hm-latest-grid.hm-latest-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

body.site-home .hm-latest-grid.hm-latest-grid--cols-6,
body.site-list .hm-latest-grid.hm-latest-grid--cols-6,
.hm-latest-grid.hm-latest-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

body.site-home .hm-card__img-wrap,
body.site-list .hm-card__img-wrap,
.hm-card__img-wrap {
    position: relative;
}

body.site-home .hm-card__discount-badge,
body.site-list .hm-card__discount-badge,
.hm-card__discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

body.site-home .hm-latest-grid.hm-view-list {
    grid-template-columns: 1fr;
}

body.site-home .hm-latest-grid.hm-view-list .hm-card {
    flex-direction: row;
}

body.site-home .hm-latest-grid.hm-view-list .hm-card__img {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 100px;
}

body.site-home .hm-latest-grid.hm-view-list .hm-card__desc {
    -webkit-line-clamp: 3;
}

body.site-home .hm-latest-grid > li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    list-style: none;
}

body.site-list .hm-product-list > li,
body.site-list .hm-latest-grid > li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    list-style: none;
}

body.site-list .content .hm-card {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-line, #e8ecf1);
    border-radius: var(--c-r, 8px);
    overflow: hidden;
}

body.site-list .content .hm-card__img img {
    width: 100%;
    height: auto;
    display: block;
}

body.site-list .content .hm-card__body {
    padding: 10px 12px 12px;
}

body.site-list .content .product_box3.lst {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

body.site-list .hm-product-list .hm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
}

body.site-list .hm-product-list .hm-card__img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef1f5;
}

body.site-list .hm-product-list .hm-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.site-list .hm-product-list .hm-card__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

body.site-list .hm-product-list .hm-card__title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

body.site-list .hm-product-list .hm-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e8ecf1;
}

body.site-list .hm-product-list .hm-card__btn {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #b8d4ef;
    background: #eef4fb;
    color: #3b82c4 !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
}

body.site-home .hm-btn-more {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 14px auto 0;
    padding: 10px 20px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--c-blue-line);
    background: var(--c-surface);
    color: var(--c-blue) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
}

body.site-home .hm-btn-more:hover {
    background: var(--c-blue-soft);
}

/* ── Shops ── */
body.site-home .hm-shops {
    display: grid;
    gap: 12px;
}

body.site-home .hm-shops--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.site-home .hm-shops--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.site-home .hm-shops--cols-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

body.site-home .hm-shop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    position: relative;
    min-width: 0;
    writing-mode: horizontal-tb !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.site-home .hm-shop:hover {
    border-color: var(--c-blue-line);
    background: var(--c-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

body.site-home .hm-shop__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

body.site-home .hm-shop__logo {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    align-self: center;
}

body.site-home .hm-shop__logo img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--c-line);
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

body.site-home .hm-shop__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.site-home .hm-shop__name {
    margin: 0;
    padding-top: 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    height: auto !important;
    text-align: center;
}

body.site-home .hm-shop__name a {
    color: var(--c-text);
    text-decoration: none !important;
}

body.site-home .hm-shop__name a:hover {
    color: var(--c-blue);
}

body.site-home .hm-shop__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

body.site-home .hm-shop__stat {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f6fa;
    border: 1px solid #e4e9f0;
    color: #5a6578;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

body.site-home .hm-shop__stat--rating {
    background: #fff8eb;
    border-color: #f6dfb8;
    color: #b45309;
}

body.site-home .hm-shop__stat--income {
    background: #eefbf3;
    border-color: #c5e8d2;
    color: #15803d;
}

body.site-home .hm-shop__stat--owner {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.site-home .hm-shop__files {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    min-height: 30px;
}

body.site-home .hm-shop__files a {
    display: block;
    line-height: 0;
}

body.site-home .hm-shop__files a img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid var(--c-line);
    object-fit: cover;
    display: block;
}

@media (max-width: 1199px) {
    body.site-home .hm-shops--cols-8 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    body.site-home .hm-shops--cols-6,
    body.site-home .hm-shops--cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.site-home .hm-shops--cols-8,
    body.site-home .hm-shops--cols-6,
    body.site-home .hm-shops--cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    body.site-home .hm-shops--cols-8,
    body.site-home .hm-shops--cols-6,
    body.site-home .hm-shops--cols-5 {
        grid-template-columns: 1fr;
    }
}

/* ── Studio open orders row (homepage + listing page) ── */
.hm-studio-orders {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-line, #e8ecf1);
    border-radius: var(--c-r, 8px);
    padding: 14px 16px 16px;
}

body.site-home .hm-studio-orders {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--c-r);
}

.hm-studio-orders__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line, #e8ecf1);
}

.hm-studio-orders__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text, #2d3748);
}

.hm-studio-orders__view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-green, #16a34a);
    text-decoration: none;
    white-space: nowrap;
}

.hm-studio-orders__view-all:hover {
    text-decoration: underline;
}

.hm-studio-orders__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.hm-studio-orders__cta,
.hm-studio-orders__card {
    flex: 0 0 220px;
    min-height: 168px;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
}

.hm-studio-orders__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 14px;
    background: #f8fafc;
}

.hm-studio-orders__cta-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.hm-studio-orders__cta-desc {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

.hm-studio-orders__cta-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hm-studio-orders__cta-btn:hover {
    background: #15803d;
    color: #fff !important;
}

.hm-studio-orders__card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hm-studio-orders__card:hover {
    border-color: #86efac;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
}

.hm-studio-orders__time {
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
}

.hm-studio-orders__topic {
    margin: 8px 0 6px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #16a34a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-studio-orders__summary {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-studio-orders__foot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
    font-size: 11.5px;
    color: #64748b;
}

.hm-studio-orders--page .hm-studio-orders__track {
    flex-wrap: wrap;
    overflow: visible;
}

.hm-studio-orders--page .hm-studio-orders__cta,
.hm-studio-orders--page .hm-studio-orders__card {
    flex: 1 1 220px;
    max-width: 280px;
}

.hm-open-orders-page .ops-order-detail {
    margin-bottom: 16px;
}

/* Kill legacy forums-module if any remnant */
body.site-home .forums-module .topic {
    float: none !important;
    width: auto !important;
    display: block !important;
}

/* ── Footer — light, full width (override legacy gray) ── */
body.site-home .myFooter_top,
body.site-home .myFooter_content,
body.site-home .myFooter_bottom {
    color: var(--c-text) !important;
}

body.site-home .myFooter_content {
    width: 100%;
    background: #f0f2f5 !important;
    border-top: 1px solid var(--c-line);
    margin-top: 0;
    min-height: 0;
    overflow: visible;
}

body.site-home .myFooter_content_container {
    max-width: var(--c-inner) !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto;
    padding: 28px 16px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

body.site-home .myFooter_content_container .column.qa,
body.site-home .myFooter_content_container .column.ga {
    width: auto !important;
    float: none !important;
}

body.site-home .myFooter_content_container .column {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-height: 0;
}

body.site-home .myFooter_content_container .column h3 {
    color: var(--c-text) !important;
    font-size: 13px;
    font-weight: 700;
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 10px;
}

body.site-home .myFooter_content_container .column h3 span {
    border-bottom: 2px solid var(--c-blue) !important;
    padding-bottom: 4px;
    color: var(--c-text) !important;
    display: inline-block;
    font-family: inherit !important;
}

body.site-home .myFooter_content_container .column h3 span:hover {
    color: var(--c-text) !important;
    border-bottom-color: var(--c-blue) !important;
}

body.site-home .myFooter_content_container p {
    color: var(--c-muted) !important;
}

body.site-home .myFooter_content_container .column p,
body.site-home .myFooter_content_container .column ul li a {
    color: var(--c-muted) !important;
    font-size: 12.5px;
    line-height: 1.65;
}

body.site-home .myFooter_content_container .column ul li a {
    text-decoration: none !important;
}

body.site-home .myFooter_content_container .column ul li a:hover {
    color: var(--c-blue) !important;
}

body.site-home .myFooter_content_container .column ul li a i {
    color: var(--c-blue) !important;
    opacity: 0.65;
}

body.site-home .myFooter_bottom {
    width: 100%;
    background: var(--c-surface) !important;
    border-top: 1px solid var(--c-line);
    padding-bottom: 0;
    overflow: visible;
}

body.site-home .myFooter_bottom_container {
    max-width: var(--c-inner) !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto 0 !important;
    padding: 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

body.site-home .footer-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

body.site-home .footer-totals .total {
    background: var(--c-bg) !important;
    border: 1px solid var(--c-line) !important;
    border-radius: var(--c-r);
    padding: 10px 18px;
    min-width: 100px;
    float: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    width: auto !important;
    cursor: default;
    margin: 0 !important;
}

body.site-home .footer-totals .total:hover {
    opacity: 1 !important;
}

body.site-home .footer-totals .total.blue,
body.site-home .footer-totals .total.red,
body.site-home .footer-totals .total.green,
body.site-home .footer-totals .total.brown,
body.site-home .footer-totals .total.yellow {
    background: var(--c-bg) !important;
}

body.site-home .footer-totals .total .value,
body.site-home .footer-totals .total.blue .value,
body.site-home .footer-totals .total.red .value,
body.site-home .footer-totals .total.green .value,
body.site-home .footer-totals .total.brown .value,
body.site-home .footer-totals .total.yellow .value {
    background: transparent !important;
    color: var(--c-text) !important;
    float: none !important;
    display: block !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.site-home .footer-totals .total .type {
    padding: 0 !important;
    display: block;
}

body.site-home .footer-totals .total .mark.value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-text) !important;
}

body.site-home .footer-totals .total .type {
    font-size: 11px;
    color: var(--c-muted) !important;
}

body.site-home .footer-totals .total.yellow { border-top: 2px solid var(--c-orange) !important; }
body.site-home .footer-totals .total.brown { border-top: 2px solid #b0bec9 !important; }
body.site-home .footer-totals .total.red { border-top: 2px solid #e8b4b4 !important; }
body.site-home .footer-totals .total.green { border-top: 2px solid var(--c-green-line) !important; }
body.site-home .footer-totals .total.blue { border-top: 2px solid var(--c-blue-line) !important; }

body.site-home .myFooter_bottom .powered {
    color: var(--c-muted);
    font-size: 11.5px;
    text-align: center;
    float: none !important;
}

body.site-home .myFooter_bottom .powered a {
    color: var(--c-blue) !important;
}

/* ── Legacy reset inside home ── */
body.site-home .home-page .mostsale,
body.site-home .home-page .mostdl,
body.site-home .home-page .halfarticle {
    float: none;
    width: auto;
}

body.site-home .home-page .mostsalepic,
body.site-home .home-page .mostsaledetail {
    all: unset;
    display: block;
}

body.site-home .product_title {
    margin-bottom: 0;
}

body.site-home .sp10 {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    body.site-home .hm-latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body.site-home .myFooter_content_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    body.site-home .hm-latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    body.site-home .hm-latest-grid.hm-view-list .hm-card {
        flex-direction: column;
    }

    body.site-home .hm-latest-grid.hm-view-list .hm-card__img {
        width: 100%;
    }

    body.site-home .myFooter_content_container .column {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    body.site-home .home-page {
        padding: 10px 10px 20px;
    }

    body.site-home .hm-panel {
        padding: 10px;
    }

    body.site-home .intro {
        min-width: 0;
        flex: 1;
    }
}
