/* ==========================================================================
   Homepage redesign - scoped under .hp-home, safe for other pages
   ========================================================================== */
.hp-home {
    --hp-primary: #ff5733;
    --hp-primary-dark: #e13d1b;
    --hp-ink: #1f2430;
    --hp-muted: #6b7280;
    --hp-line: #e8ebef;
    --hp-bg: #f6f7f9;
    background: var(--hp-bg);
    color: var(--hp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}
.hp-home *,
.hp-home *::before,
.hp-home *::after { box-sizing: border-box; }
.hp-home a { text-decoration: none; }
.hp-home img { max-width: 100%; display: block; }
.hp-wrap { width: 1200px; margin: 0 auto; }

/* ---------------- Hero ---------------- */
.hp-hero {
    padding: 24px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--hp-bg) 100%);
}
.hp-hero-grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.hp-rail {
    position: relative;
    width: 250px;
    flex: 0 0 250px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.hp-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    font-size: 15px;
    font-weight: 700;
}
.hp-rail-head a { font-size: 12px; font-weight: 400; color: var(--hp-muted); }
.hp-rail-head a:hover { color: var(--hp-primary); }
.hp-rail-list { list-style: none; margin: 0; padding: 0 8px; }
.hp-rail-item { position: relative; }
.hp-rail-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease;
}
.hp-rail-link svg { color: #b4bac4; flex: 0 0 auto; }
.hp-rail-item:hover > .hp-rail-link {
    background: #fff2ee;
    color: var(--hp-primary-dark);
}
.hp-rail-item:hover > .hp-rail-link svg { color: var(--hp-primary); }

.hp-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: -1px;
    margin-left: 10px;
    width: 720px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    box-shadow: 0 20px 46px rgba(17, 24, 39, .14);
    z-index: 80;
}
.hp-rail-item:hover .hp-flyout { display: block; }
.hp-flyout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--hp-line);
}
.hp-flyout-title-main { font-size: 16px; font-weight: 700; color: var(--hp-ink); }
.hp-flyout-all { font-size: 12px; color: var(--hp-primary); }
.hp-flyout-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;
}
.hp-flyout-col { min-width: 0; }
.hp-flyout-title {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-flyout-title:hover { color: var(--hp-primary); }
.hp-flyout-sub {
    display: block;
    padding: 3px 0;
    font-size: 12px;
    color: var(--hp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-flyout-sub:hover { color: var(--hp-primary); }

.hp-rail-hot {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--hp-line);
}
.hp-rail-hot .hp-rail-foot-t { margin-bottom: 8px; }

.hp-rail-foot {
    margin-top: auto;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--hp-line);
}
.hp-rail-foot-t {
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.hp-rail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-rail-chips a {
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--hp-bg);
    color: #4b5563;
    font-size: 12px;
    transition: background .18s ease, color .18s ease;
}
.hp-rail-chips a:hover { background: #fff2ee; color: var(--hp-primary-dark); }
.hp-rail-cta {
    display: block;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--hp-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background .18s ease;
}
.hp-rail-cta:hover { background: var(--hp-primary-dark); color: #fff; }

.hp-hero-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hp-hero-swiper {
    width: 100%;
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef1f5;
}
.hp-hero-swiper .swiper-wrapper,
.hp-hero-swiper .swiper-slide { height: 100%; }
.hp-hero-slide { display: block; position: relative; width: 100%; height: 100%; }
.hp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(180deg, rgba(15, 20, 30, 0) 0%, rgba(15, 20, 30, .78) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hp-hero-tag {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--hp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hp-hero-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.hp-hero-price { color: #ffd9cf; font-size: 14px; font-weight: 600; }
.hp-hero-pagi { bottom: 12px !important; }
.hp-hero-pagi .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: .5;
}
.hp-hero-pagi .swiper-pagination-bullet-active { opacity: 1; background: var(--hp-primary); }

.hp-hero-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.hp-mini {
    display: block;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.hp-mini:hover { box-shadow: 0 12px 24px rgba(17, 24, 39, .10); transform: translateY(-2px); }
.hp-mini-img { display: block; height: 86px; background: #f1f3f6; }
.hp-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-mini-t {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-rank {
    width: 270px;
    flex: 0 0 270px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.hp-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}
.hp-rank-head a { font-size: 12px; font-weight: 400; color: var(--hp-muted); }
.hp-rank-head a:hover { color: var(--hp-primary); }
.hp-rank-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.hp-rank-list li + li { border-top: 1px dashed var(--hp-line); }
.hp-rank-list a { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.hp-rank-no {
    flex: 0 0 20px;
    height: 20px;
    border-radius: 5px;
    background: #f1f3f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.hp-rank-list li:nth-child(1) .hp-rank-no { background: #ffe3dc; color: var(--hp-primary-dark); }
.hp-rank-list li:nth-child(2) .hp-rank-no { background: #fff0d4; color: #b7791f; }
.hp-rank-list li:nth-child(3) .hp-rank-no { background: #e8f0ff; color: #3160c9; }
.hp-rank-img { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #f1f3f6; }
.hp-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-rank-info { min-width: 0; flex: 1; }
.hp-rank-name {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #374151;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.hp-rank-price {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-rank-more {
    display: block;
    margin-top: 10px;
    padding: 9px 0;
    border: 1px solid var(--hp-line);
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: border-color .18s ease, color .18s ease;
}
.hp-rank-more:hover { border-color: var(--hp-primary); color: var(--hp-primary); }

/* ---------------- Stats ---------------- */
.hp-stats { padding: 18px 0 0; }
.hp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    overflow: hidden;
}
.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 10px;
    border-right: 1px solid var(--hp-line);
    transition: background .18s ease;
}
.hp-stat:last-child { border-right: none; }
.hp-stat:hover { background: #fffaf8; }
.hp-stat b { font-size: 24px; font-weight: 800; color: var(--hp-ink); letter-spacing: -.01em; }
.hp-stat span { font-size: 12px; color: var(--hp-muted); }

/* ---------------- Sections ---------------- */
.hp-sec { padding: 44px 0 0; }
.hp-sec-grey {
    margin-top: 44px;
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
}
.hp-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.hp-sec-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--hp-ink);
    letter-spacing: -.01em;
}
.hp-sec-head p { margin: 6px 0 0; font-size: 13px; color: var(--hp-muted); }
.hp-sec-link {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: border-color .18s ease, color .18s ease;
}
.hp-sec-link:hover { border-color: var(--hp-primary); color: var(--hp-primary); }

/* Category cards */
.hp-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-cat-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.hp-cat-card:hover { box-shadow: 0 16px 32px rgba(17, 24, 39, .10); transform: translateY(-3px); }
.hp-cat-media { position: relative; display: block; height: 160px; background: #f1f3f6; }
.hp-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.hp-cat-count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.hp-cat-body { padding: 14px 16px 16px; }
.hp-cat-name { display: block; font-size: 16px; font-weight: 700; color: var(--hp-ink); }
.hp-cat-name:hover { color: var(--hp-primary); }
.hp-cat-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.hp-cat-subs a { font-size: 12px; color: var(--hp-muted); }
.hp-cat-subs a:hover { color: var(--hp-primary); }

/* Suppliers */
.hp-sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-sup {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    transition: box-shadow .2s ease;
}
.hp-sup:hover { box-shadow: 0 14px 30px rgba(17, 24, 39, .09); }
.hp-sup-top { display: flex; align-items: center; gap: 12px; }
.hp-sup-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.hp-sup-logo img { width: 100%; height: 100%; object-fit: contain; }
.hp-sup-info { min-width: 0; }
.hp-sup-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--hp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-sup-name:hover { color: var(--hp-primary); }
.hp-sup-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; font-size: 12px; color: var(--hp-muted); }
.hp-sup-country { color: #374151; font-weight: 600; }
.hp-sup-country::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #22c55e;
    vertical-align: 1px;
}
.hp-sup-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; min-width: 0; }
.hp-sup-products a { display: block; min-width: 0; height: 76px; border-radius: 8px; overflow: hidden; background: #f1f3f6; }
.hp-sup-products img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hp-sup-products a:hover img { transform: scale(1.06); }
.hp-sup-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--hp-line);
}
.hp-sup-main {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: var(--hp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-sup-visit {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-primary);
}
.hp-sup-visit:hover { color: var(--hp-primary-dark); }

/* Products */
.hp-prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hp-rows-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hp-prod {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.hp-prod:hover { box-shadow: 0 14px 28px rgba(17, 24, 39, .10); transform: translateY(-2px); }
.hp-prod-img { display: block; height: 168px; background: #f1f3f6; overflow: hidden; }
.hp-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hp-prod:hover .hp-prod-img img { transform: scale(1.05); }
.hp-prod-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; }
.hp-prod-name {
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.hp-prod-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-prod-price-q { color: #9ca3af; font-weight: 600; }
.hp-prod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
    color: #9ca3af;
    overflow: hidden;
    white-space: nowrap;
}
.hp-prod-meta em {
    font-style: normal;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-prod-meta em::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    vertical-align: 1px;
}

/* Regions */
.hp-regions { padding: 44px 0; }
.hp-region-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hp-region {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hp-region:hover { border-color: #ffd0c4; box-shadow: 0 10px 20px rgba(255, 87, 51, .08); }
.hp-region-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-region-cnt { font-size: 11px; color: var(--hp-muted); }

/* SEO */
.hp-seo {
    margin-top: 44px;
    padding: 36px 0 44px;
    background: #fff;
    border-top: 1px solid var(--hp-line);
}
.hp-seo h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--hp-ink); }
.hp-seo p { margin: 0 0 10px; font-size: 13px; line-height: 1.9; color: #4b5563; }
.hp-seo a { color: var(--hp-primary-dark); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1250px) {
    .hp-wrap { width: 96%; }
}
@media (max-width: 1100px) {
    .hp-hero-grid { flex-wrap: wrap; }
    .hp-rail { display: none; }
    .hp-rank { width: 100%; flex: 1 1 100%; margin-top: 16px; }
    .hp-rank-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 16px; }
    .hp-rank-list li + li { border-top: none; }
    .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-sup-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-prod-grid, .hp-rows-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-region-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 750px) {
    .hp-wrap { width: 94%; }
    .hp-hero { padding-top: 12px; }
    .hp-hero-main { width: 100%; }
    .hp-hero-swiper { height: 230px; }
    .hp-hero-caption { padding: 24px 14px 12px; }
    .hp-hero-title { font-size: 15px; }
    .hp-hero-price { font-size: 12px; }
    .hp-hero-mini { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
    .hp-mini-img { height: 92px; }
    .hp-rank { padding: 14px; }
    .hp-rank-list { display: block; }
    .hp-rank-list li + li { border-top: 1px dashed var(--hp-line); }
    .hp-rank-list a { padding: 10px 0; }
    .hp-stats-row { grid-template-columns: repeat(2, 1fr); }
    .hp-stat { padding: 14px 8px; }
    .hp-stat:nth-child(2) { border-right: none; }
    .hp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--hp-line); }
    .hp-stat b { font-size: 20px; }
    .hp-sec { padding-top: 28px; }
    .hp-sec-grey { margin-top: 28px; padding: 28px 0; }
    .hp-sec-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
    .hp-sec-head h2 { font-size: 18px; }
    .hp-sec-head p { font-size: 12px; }
    .hp-cat-grid,
    .hp-sup-grid,
    .hp-prod-grid,
    .hp-rows-grid,
    .hp-region-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hp-cat-media { height: 120px; }
    .hp-cat-name { font-size: 14px; }
    .hp-prod-img { height: 130px; }
    .hp-prod-body { padding: 10px; }
    .hp-prod-name { font-size: 12px; height: 35px; }
    .hp-prod-price { font-size: 12px; }
    .hp-sup { padding: 14px; }
    .hp-sup-products a { height: 62px; }
    .hp-region { padding: 10px 12px; }
    .hp-region-name { font-size: 12px; }
    .hp-region-cnt { font-size: 10px; }
    .hp-regions { padding: 28px 0; }
    .hp-seo { margin-top: 28px; padding: 24px 0 30px; }
    .hp-seo h2 { font-size: 17px; }
}
