<style>
/* ============================================================
   STC HOME — toàn bộ class dùng prefix stc__ để tránh conflict
   với CSS global của site (feature-grid, view-btn, btn-pill…)
   ============================================================ */

[data-page="home"] { font-family: 'Inter', sans-serif; background: #fafafa; color: #18181b; }

/* ── Container ── */
.stc__wrap { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.stc__page { padding-bottom: 4rem; }

/* ── Spacing helpers ── */
.stc__mb12 { margin-bottom: 3rem; }
.stc__mt12 { margin-top:    3rem; }
.stc__py8  { padding-top: 2rem; padding-bottom: 2rem; }
.stc__sy6  > * + * { margin-top: 1.5rem; }
.stc__sy12 > * + * { margin-top: 3rem; }

/* ============================================================ HERO */
.stc__hero {
    padding: 2.5rem 0 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 1024px) {
    .stc__hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
    .stc__hero-img-col { display: none; }
}

.stc__hero-left { animation: stcFL .7s ease both; }
@keyframes stcFL { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:none; } }

.stc__hero-img-col { animation: stcFR 1s ease both; position: relative; }
@keyframes stcFR { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }

/* Title */
.stc__h1 {
    font-size: clamp(1.85rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #18181b;
    margin-bottom: .875rem;
}
.stc__h1-grad {
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 4px;
}
@media (max-width: 576px) {
    .stc__h1 { font-size: 1.75rem !important; line-height: 1.25 !important; }
}

.stc__desc {
    font-size: .9rem; color: #71717a;
    max-width: 480px; line-height: 1.7;
    margin-bottom: 1.5rem;
}
@media (max-width: 576px) { .stc__desc { font-size: .8125rem; } }

/* CTA buttons */
.stc__btns { display: flex; flex-wrap: nowrap; gap: .75rem; margin-bottom: 1.5rem; }

.stc__btn-pri,
.stc__btn-out {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; height: 44px; padding: 0 1.375rem;
    border-radius: .75rem; font-weight: 700; font-size: .875rem;
    white-space: nowrap; cursor: pointer; transition: all .2s;
    text-decoration: none !important; border: none; flex-shrink: 0;
}
.stc__btn-pri { background: #2563eb; color: #fff !important; }
.stc__btn-pri:hover { background: #1d4ed8; }
.stc__btn-pri:active { transform: scale(.97); }
.stc__btn-out { background: #fff; color: #18181b !important; border: 1px solid #e4e4e7; }
.stc__btn-out:hover { background: #fafafa; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.stc__btn-out:active { transform: scale(.97); }

@media (max-width: 390px) {
    .stc__btn-pri, .stc__btn-out { padding: 0 .875rem; font-size: .75rem; gap: .375rem; }
    .stc__btn-pri svg, .stc__btn-out svg { width: 15px; height: 15px; }
}

/* Feature badges */
.stc__feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    padding-top: 1rem;
}
@media (max-width: 479px) { .stc__feat-grid { grid-template-columns: repeat(2, 1fr); } }

.stc__feat-item {
    display: flex; flex-direction: column; gap: .25rem;
    padding: .625rem; background: #fff;
    border: 1px solid #f4f4f5; border-radius: 1rem;
}
.stc__feat-head { display: flex; align-items: center; gap: .5rem; }
.stc__feat-icon { width: 14px; height: 14px; color: #2563eb; flex-shrink: 0; }
@media (min-width: 640px) { .stc__feat-icon { width: 16px; height: 16px; } }
.stc__feat-title { font-size: 11px; font-weight: 700; color: #18181b; }
@media (min-width: 640px) { .stc__feat-title { font-size: 13px; } }
.stc__feat-desc { font-size: 9px; font-weight: 500; color: #71717a; padding-left: 1.375rem; margin: 0; }
@media (min-width: 640px) { .stc__feat-desc { font-size: 10px; padding-left: 1.5rem; } }

/* Hero image */
.stc__img-glow {
    position: absolute; inset: -1rem;
    background: rgba(59,130,246,.05);
    filter: blur(48px); border-radius: 9999px; pointer-events: none;
}
.stc__img-inner {
    position: relative; background: #fff;
    border: 1px solid #f4f4f5; padding: .5rem;
    border-radius: 2rem; overflow: hidden; transition: transform .7s;
}
.stc__img-inner:hover { transform: scale(1.015); }
.stc__img-inner img { width: 100%; height: auto; border-radius: 1.5rem; display: block; }

/* ============================================================ SECTION HEADER */
.stc__sec-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: #18181b; margin: 0; }
.stc__sec-sub   { font-size: .875rem; color: #71717a; margin-top: .25rem; }

/* ============================================================ ECOSYSTEM */
.stc__eco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1024px) { .stc__eco-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .stc__eco-grid { grid-template-columns: repeat(2, 1fr); } }

.stc__eco-card {
    display: flex; align-items: center; gap: .75rem;
    background: #fff; border: 1px solid #f4f4f5;
    padding: .75rem 1rem; border-radius: 1rem;
    text-decoration: none !important;
    transition: box-shadow .3s, transform .3s, border-color .3s;
    overflow: hidden;
}
.stc__eco-card:hover { box-shadow: 0 20px 25px -5px rgba(59,130,246,.08); transform: translateY(-3px); border-color: #dbeafe; }

.stc__eco-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s;
}
.stc__eco-card:hover .stc__eco-icon { transform: scale(1.1); }

.stc__eco-text h3 { font-size: .875rem; font-weight: 700; color: #18181b; margin: 0 0 .125rem; }
.stc__eco-text p  { font-size: .6875rem; color: #71717a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stc__eco-chev { margin-left: auto; flex-shrink: 0; color: #d4d4d8; transition: color .2s, transform .2s; }
.stc__eco-card:hover .stc__eco-chev { color: #2563eb; transform: translateX(3px); }

/* ============================================================ PRODUCT CONTROLS */
.stc__prod-hdr {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.stc__ctrl-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 768px) { .stc__ctrl-row { width: 100%; } }

/* View switcher */
.stc__views {
    display: flex; background: #f3f4f6;
    border: 1px solid #e5e7eb; border-radius: .75rem;
    padding: .25rem; gap: 2px;
}
.stc__vbtn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent;
    border-radius: 6px; cursor: pointer;
    color: #9ca3af; transition: all .2s;
}
.stc__vbtn.active { background: #fff; color: #111827; box-shadow: 0 2px 4px rgba(0,0,0,.05); }

/* Sort */
.stc__sort {
    display: inline-flex; align-items: center; gap: 2px;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: .75rem; padding: .25rem;
    overflow-x: auto; max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stc__sort::-webkit-scrollbar { display: none; }
@media (max-width: 768px) { .stc__sort { max-width: calc(100vw - 2rem); } }

.stc__sbtn {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: 0 .75rem; height: 32px;
    border: none; background: transparent; border-radius: .5rem;
    font-size: .75rem; font-weight: 700; color: #6b7280;
    cursor: pointer; white-space: nowrap; transition: all .2s;
}
.stc__sbtn.active { background: #fff; color: #111827; box-shadow: 0 2px 4px rgba(0,0,0,.05); }

/* Category pills */
.stc__pills {
    display: flex; gap: .5rem;
    flex-wrap: nowrap; overflow-x: auto;
    padding: .25rem .125rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stc__pills::-webkit-scrollbar { display: none; }

.stc__pill {
    display: inline-flex; align-items: center;
    padding: 0 1.125rem; height: 32px;
    border-radius: 9999px; font-size: .75rem; font-weight: 700;
    border: 1px solid #e4e4e7; background: #fff; color: #52525b;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    text-decoration: none !important; transition: all .2s;
}
.stc__pill:hover,
.stc__pill.active {
    background: #2563eb; color: #fff !important;
    border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* ============================================================ PRODUCT CARDS */
.stc__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.25rem;
}
@media (max-width: 1024px) { .stc__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .stc__grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

.stc__pcard {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #f4f4f5;
    border-radius: 1.5rem; padding: .625rem;
    text-decoration: none !important; transition: transform .3s;
}
.stc__pcard:hover { transform: translateY(-4px); }

.stc__pimg {
    position: relative; aspect-ratio: 4/3;
    border-radius: 1.125rem; overflow: hidden; background: #f4f4f5;
}
.stc__pimg img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .7s ease; display: block;
}
.stc__pcard:hover .stc__pimg img { transform: scale(1.08); }

.stc__ptag {
    position: absolute; bottom: .5rem; left: .5rem;
    background: rgba(37,99,235,.9); backdrop-filter: blur(8px);
    color: #fff; padding: .25rem .625rem;
    border-radius: .75rem; font-weight: 800; font-size: .6875rem; z-index: 2;
}
@media (min-width: 640px) { .stc__ptag { font-size: .75rem; } }

.stc__pbody { padding: .25rem .125rem 0; margin-top: .5rem; }

.stc__pbadge {
    display: inline-block;
    background: #eff6ff; color: #2563eb;
    font-size: .5625rem; font-weight: 700;
    padding: .125rem .375rem; border-radius: .375rem;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: .375rem;
}

.stc__ptitle {
    font-size: .8125rem; font-weight: 700;
    line-height: 1.35; color: #18181b;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; transition: color .2s; margin: 0;
}
@media (min-width: 640px) { .stc__ptitle { font-size: .9375rem; } }
.stc__pcard:hover .stc__ptitle { color: #2563eb; }

.stc__pfoot { display: flex; align-items: baseline; justify-content: space-between; margin-top: .5rem; }
.stc__pseller { font-size: .625rem; color: #a1a1aa; font-weight: 500; }
.stc__pseller span { color: #71717a; }
.stc__pprice { font-size: .8125rem; font-weight: 900; color: #2563eb; white-space: nowrap; }
@media (min-width: 640px) { .stc__pprice { font-size: .875rem; } }

/* ============================================================ MODAL */
#modal_notification .modal-content { background: none !important; border: none !important; }
.stc__mbox {
    background: #fff; border-radius: 1.5rem;
    width: 100%; max-width: 420px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    margin: auto; overflow: hidden;
}
.stc__mclose {
    position: absolute; top: 1rem; right: 1rem;
    width: 32px; height: 32px; border-radius: 9999px;
    background: #f4f4f5; border: none;
    display: flex; align-items: center; justify-content: center;
    color: #71717a; cursor: pointer; transition: all .2s; z-index: 10;
}
.stc__mclose:hover { background: #e4e4e7; color: #18181b; }
.stc__mbody { padding: 2.5rem 1.5rem 1.5rem; text-align: center; }
.stc__micon { width: 56px; height: 56px; background: #eff6ff; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.stc__mtitle { font-size: 1.375rem; font-weight: 700; color: #18181b; margin-bottom: 1rem; }
.stc__mscroll { max-height: 280px; overflow-y: auto; margin-bottom: 1.5rem; padding: 0 .5rem; font-size: .9rem; line-height: 1.6; color: #52525b; scrollbar-width: thin; }
.stc__mconfirm { width: 100%; height: 50px; background: #18181b; color: #fff; border: none; border-radius: .875rem; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s; }
.stc__mconfirm:hover { background: #27272a; }
.modal-backdrop.show { opacity: .6; backdrop-filter: blur(8px); }
</style>