/* ==========================================================================
   KunjMart Homepage — Original Premium B2B/B2C Marketplace UI
   Scoped to body.km-homepage. Header/footer chrome is NOT redesigned here.
   ========================================================================== */

.km-homepage {
    --kmh-ink: #111827;
    --kmh-ink-2: #1f2937;
    --kmh-ink-3: #374151;
    --kmh-mist: #f9fafb;
    --kmh-mist-2: #f3f4f6;
    --kmh-card: #ffffff;
    --kmh-text: #1f2937;
    --kmh-muted: #6b7280;
    --kmh-line: #e5e7eb;
    --kmh-yellow: #fedc19;
    --kmh-yellow-dark: #e5c400;
    --kmh-teal: var(--kmh-yellow);
    --kmh-teal-dark: #111827;
    --kmh-brass: #fedc19;
    --kmh-brass-soft: #fff7c2;
    --kmh-danger: #b42318;
    --kmh-radius: 16px;
    --kmh-radius-sm: 10px;
    --kmh-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
    --kmh-shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);
    --kmh-shadow-yellow: 0 8px 22px rgba(254, 220, 25, 0.35);
    --kmh-ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --kmh-container: 1180px;
    --kmh-font: "Outfit", system-ui, sans-serif;
    --kmh-display: "Fraunces", Georgia, serif;
    background: var(--kmh-mist);
    color: var(--kmh-text);
    font-family: var(--kmh-font);
    font-size: 15.5px;
    line-height: 1.55;
    overflow-x: clip;
}

/* Beat global img rules — full-bleed hero (no letterbox bars) */
.km-homepage .kmh-banner__img {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (prefers-color-scheme: dark) {
    .km-homepage:not([data-theme="light"]) {
        --kmh-mist: #0a1219;
        --kmh-mist-2: #101b26;
        --kmh-card: #142130;
        --kmh-text: #e8eef4;
        --kmh-muted: #9aabbc;
        --kmh-line: #243445;
        --kmh-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
        --kmh-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    }
}

.km-homepage[data-theme="dark"] {
    --kmh-mist: #0a1219;
    --kmh-mist-2: #101b26;
    --kmh-card: #142130;
    --kmh-text: #e8eef4;
    --kmh-muted: #9aabbc;
    --kmh-line: #243445;
    --kmh-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    --kmh-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.km-homepage *,
.km-homepage *::before,
.km-homepage *::after {
    box-sizing: border-box;
}

.km-homepage a {
    color: inherit;
    text-decoration: none;
}

.km-homepage img {
    max-width: 100%;
    height: auto;
    display: block;
}

.km-homepage :focus-visible {
    outline: 3px solid var(--kmh-brass);
    outline-offset: 2px;
}

.km-homepage .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kmh-container {
    width: min(100% - 32px, var(--kmh-container));
    margin-inline: auto;
}

.kmh-flash {
    margin: 12px 20px;
    border-radius: var(--kmh-radius-sm);
}

/* ── Buttons ── */
.kmh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--kmh-radius-sm);
    border: 2px solid transparent;
    font-family: var(--kmh-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--kmh-ease), box-shadow var(--kmh-ease), background var(--kmh-ease), color var(--kmh-ease), border-color var(--kmh-ease);
}

.kmh-btn--lg {
    min-height: 52px;
    padding: 0 28px;
    font-size: 15px;
}

.kmh-btn--block {
    width: 100%;
}

.kmh-btn--primary {
    background: var(--kmh-yellow);
    color: var(--kmh-ink);
    border-color: var(--kmh-yellow);
    box-shadow: var(--kmh-shadow-yellow);
}

.kmh-btn--primary:hover {
    background: var(--kmh-ink);
    border-color: var(--kmh-ink);
    color: var(--kmh-yellow);
    transform: translateY(-2px);
}

.kmh-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.kmh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.kmh-btn--outline {
    background: var(--kmh-card);
    color: var(--kmh-text);
    border-color: var(--kmh-line);
}

.kmh-btn--outline:hover {
    border-color: var(--kmh-ink);
    background: var(--kmh-ink);
    color: var(--kmh-yellow);
    transform: translateY(-2px);
    box-shadow: var(--kmh-shadow);
}

.kmh-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--kmh-line);
    background: var(--kmh-card);
    color: var(--kmh-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--kmh-ease), background var(--kmh-ease), color var(--kmh-ease), border-color var(--kmh-ease);
}

.kmh-icon-btn:hover {
    background: var(--kmh-yellow);
    color: var(--kmh-ink);
    border-color: var(--kmh-yellow);
    transform: translateY(-2px);
}

.kmh-icon-btn.is-active {
    background: var(--kmh-yellow);
    color: #b91c1c;
    border-color: var(--kmh-yellow);
}

.kmh-icon-btn--compare {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
}

.kmh-icon-btn--compare:hover {
    background: #1f2937 !important;
    color: #fedc19 !important;
}

.kmh-icon-btn--compare .lnr {
    font-size: 16px;
    color: inherit;
}

.kmh-text-link {
    font-weight: 700;
    color: var(--kmh-ink);
    display: inline-flex;
    margin-top: 10px;
}

.kmh-text-link:hover {
    color: #b45309;
}

/* ── Section chrome ── */
.kmh-section {
    padding: 72px 0;
}

.kmh-heading {
    margin-bottom: 36px;
}

.kmh-heading--center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.kmh-heading--left {
    text-align: left;
    max-width: 640px;
    margin-bottom: 0;
}

.kmh-heading__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b45309;
}

.kmh-heading__title {
    margin: 0;
    font-family: var(--kmh-display);
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--kmh-text);
}

.kmh-heading__subtitle {
    margin: 12px 0 0;
    color: var(--kmh-muted);
    font-size: 1.02rem;
}

.kmh-heading--light .kmh-heading__eyebrow {
    color: var(--kmh-brass);
}

.kmh-heading--light .kmh-heading__title {
    color: #f4f7fa;
}

.kmh-heading--light .kmh-heading__subtitle {
    color: rgba(244, 247, 250, 0.72);
}

.kmh-section__bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.kmh-section__action {
    flex-shrink: 0;
}

.kmh-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--kmh-muted);
    padding: 28px;
    background: var(--kmh-card);
    border-radius: var(--kmh-radius);
    border: 1px dashed var(--kmh-line);
}

/* ==========================================================================
   1. Hero banner carousel — one full-width slide at a time
   ========================================================================== */
.kmh-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #f3f4f6;
    color: #fff;
}

.kmh-banner {
    --kmh-banner-h: clamp(280px, 48vw, 560px);
    position: relative;
    width: 100%;
    height: var(--kmh-banner-h);
    overflow: hidden;
    background: #f3f4f6;
}

.kmh-banner__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kmh-banner__track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.kmh-banner.is-dragging .kmh-banner__track {
    transition: none;
}

.kmh-banner__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e5e7eb;
}

.kmh-banner__link {
    display: block;
    width: 100%;
    height: 100%;
}

.kmh-banner__img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.kmh-banner__slide--fallback {
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(254, 220, 25, 0.28), transparent 55%),
        linear-gradient(145deg, #111827 0%, #1f2937 55%, #111827 100%);
}

.kmh-hero__fallback-inner {
    color: #fff;
    line-height: 1.5;
}

.kmh-hero__eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--kmh-yellow);
}

.kmh-hero__title {
    margin: 0;
    font-family: var(--kmh-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
}

.kmh-hero__desc {
    margin: 14px 0 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

.kmh-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.kmh-banner__arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kmh-banner__arrow:hover {
    background: var(--kmh-yellow);
    color: #111827;
}

.kmh-banner__arrow--prev { left: 14px; }
.kmh-banner__arrow--next { right: 14px; }

@media (max-width: 1100px) {
    .kmh-banner {
        --kmh-banner-h: clamp(240px, 46vw, 460px);
    }
}

@media (max-width: 767px) {
    .kmh-banner {
        --kmh-banner-h: clamp(200px, 56vw, 320px);
    }

    .kmh-banner__arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .kmh-banner__arrow--prev { left: 8px; }
    .kmh-banner__arrow--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .kmh-banner__track {
        transition: none;
    }
}

.kmh-trust {
    border-top: 1px solid rgba(254, 220, 25, 0.2);
    background: var(--kmh-ink);
    padding: 18px 0;
    width: 100%;
}

.kmh-trust--band {
    margin: 0;
}

.kmh-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kmh-trust__item {
    text-align: center;
}

.kmh-trust__item strong {
    display: block;
    font-family: var(--kmh-display);
    font-size: 1.35rem;
    color: var(--kmh-yellow);
}

.kmh-trust__item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Home product horizontal carousel — full width + side arrows */
.kmh-home-carousel {
    padding-top: 48px;
    padding-bottom: 48px;
    background: var(--kmh-mist);
    width: 100%;
    overflow: hidden;
}

.kmh-home-carousel .kmh-section__bar {
    margin-bottom: 28px;
}

.kmh-home-carousel__rail {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 56px;
}

.kmh-home-carousel__viewport {
    width: 100%;
    overflow: visible;
}

.kmh-home-carousel .kmh-owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.kmh-home-carousel .kmh-owl-carousel .owl-item {
    display: flex;
    height: auto;
    float: none;
}

.kmh-home-carousel__item {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    height: auto;
    align-items: stretch;
    padding: 8px 10px 16px;
}

.kmh-home-carousel .kmh-product-card {
    width: 100%;
    height: 100%;
}

.kmh-home-carousel .kmh-product-card:hover {
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
    transform: translateY(-4px);
}

.kmh-home-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--kmh-yellow);
    color: var(--kmh-ink);
    font-size: 30px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.16);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kmh-home-carousel__arrow:hover {
    background: var(--kmh-ink);
    color: var(--kmh-yellow);
    transform: translateY(-50%) scale(1.05);
}

.kmh-home-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.kmh-home-carousel__arrow--prev {
    left: 8px;
}

.kmh-home-carousel__arrow--next {
    right: 8px;
}

/* Hide default owl nav — we use custom side arrows */
.kmh-owl-carousel .owl-nav {
    display: none !important;
}

/* Owl pagination — horizontal row (all home carousels) */
.km-homepage .kmh-owl-carousel.owl-carousel .owl-dots,
.km-homepage .kmh-owl-carousel .owl-dots {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    text-align: center;
    position: relative !important;
    inset: auto !important;
    float: none !important;
}

.km-homepage .kmh-owl-carousel .owl-dot {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.km-homepage .kmh-owl-carousel .owl-dot span {
    display: block;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #d1d5db !important;
    transition: background 0.2s ease, width 0.2s ease;
}

.km-homepage .kmh-owl-carousel .owl-dot.active span,
.km-homepage .kmh-owl-carousel .owl-dot:hover span {
    background: var(--kmh-yellow) !important;
    width: 28px !important;
    height: 8px !important;
    border-radius: 999px !important;
}

/* Legacy selectors (same rules, kept for specificity fallbacks) */
.kmh-owl-carousel .owl-dots {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
}

.kmh-owl-carousel .owl-dot {
    display: inline-flex !important;
    float: none !important;
}

.kmh-owl-carousel .owl-dot span {
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    background: #d1d5db !important;
    border-radius: 999px !important;
    transition: background 0.2s ease, width 0.2s ease;
}

.kmh-owl-carousel .owl-dot.active span,
.kmh-owl-carousel .owl-dot:hover span {
    background: var(--kmh-yellow) !important;
    width: 28px !important;
    height: 8px !important;
    border-radius: 999px !important;
}

.kmh-home-carousel .kmh-cat-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.kmh-home-carousel .kmh-blog-card--horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    margin: 0;
    min-height: 168px;
}

.kmh-home-carousel .kmh-blog-card--horizontal:hover {
    transform: translateY(-3px);
}

.kmh-home-carousel .kmh-blog-card--horizontal .kmh-blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.kmh-home-carousel .kmh-blog-card--horizontal .kmh-blog-card__title {
    flex: 0 1 auto;
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 0;
}

.kmh-home-carousel .kmh-blog-card--horizontal .kmh-blog-card__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--kmh-text);
    font-weight: 700;
}

.kmh-home-carousel .kmh-blog-card--horizontal .kmh-blog-card__foot {
    margin-top: auto;
    padding-top: 6px;
}

.kmh-home-carousel .kmh-blog-card--horizontal .kmh-blog-card__meta {
    margin-bottom: 6px;
    font-size: 11px;
}

/* Blog journal carousel — spacing, media, equal-height slides */
@media (max-width: 767px) {
    .km-homepage .kmh-owl-carousel .owl-dots,
    .kmh-owl-carousel .owl-dots {
        flex-wrap: wrap !important;
        gap: 6px;
        margin-top: 12px;
    }

    .km-homepage .kmh-owl-carousel .owl-dot.active span,
    .kmh-owl-carousel .owl-dot.active span {
        width: 22px !important;
    }
}

.kmh-home-carousel.kmh-blogs {
    padding-bottom: 56px;
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__rail {
    padding: 0 clamp(52px, 5vw, 72px);
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__arrow {
    width: 44px;
    height: 44px;
    font-size: 26px;
    background: #fff;
    border: 1px solid var(--kmh-line);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__arrow:hover {
    background: var(--kmh-yellow);
    border-color: var(--kmh-yellow);
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__arrow--prev {
    left: clamp(4px, 1vw, 12px);
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__arrow--next {
    right: clamp(4px, 1vw, 12px);
}

.kmh-home-carousel.kmh-blogs .kmh-home-carousel__item {
    display: flex;
    height: 100%;
    padding: 8px 8px 16px;
    align-items: stretch;
}

.kmh-home-carousel.kmh-blogs .kmh-owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal .kmh-blog-card__media {
    flex: 0 0 40%;
    width: 40%;
    max-width: 220px;
    min-width: 120px;
    aspect-ratio: unset;
    align-self: stretch;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid var(--kmh-line);
}

.kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal .kmh-blog-card__media img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal .kmh-blog-card__body {
    padding: 14px 16px 16px;
}

@media (max-width: 575px) {
    .kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal {
        flex-direction: column;
        min-height: 0;
    }

    .kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal .kmh-blog-card__media {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--kmh-line);
    }

    .kmh-home-carousel.kmh-blogs .kmh-blog-card--horizontal .kmh-blog-card__media img {
        min-height: 160px;
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .kmh-home-carousel__rail {
        padding: 0 44px;
    }

    .kmh-home-carousel__arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .kmh-home-carousel__arrow--prev { left: 4px; }
    .kmh-home-carousel__arrow--next { right: 4px; }

    .kmh-home-carousel__item {
        padding: 6px 6px 12px;
    }
}

/* ==========================================================================
   2. Features
   ========================================================================== */
.kmh-features {
    background: var(--kmh-mist);
}

.kmh-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kmh-feature-card {
    background: var(--kmh-card);
    border: 1px solid var(--kmh-line);
    border-radius: var(--kmh-radius);
    padding: 26px 22px;
    box-shadow: var(--kmh-shadow);
    transition: transform var(--kmh-ease), box-shadow var(--kmh-ease), border-color var(--kmh-ease);
}

.kmh-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kmh-shadow-lg);
    border-color: rgba(254, 220, 25, 0.55);
}

.kmh-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(254, 220, 25, 0.2);
    color: var(--kmh-ink);
    margin-bottom: 16px;
}

.kmh-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--kmh-text);
}

.kmh-feature-card p {
    margin: 0;
    color: var(--kmh-muted);
    font-size: 0.94rem;
}

/* ==========================================================================
   3. Categories
   ========================================================================== */
.kmh-categories {
    background: var(--kmh-mist-2);
}

.kmh-categories__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.kmh-cat-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.kmh-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
    border-color: #fedc19;
}

.kmh-cat-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.kmh-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.kmh-cat-card:hover .kmh-cat-card__media img {
    transform: scale(1.06);
}

.kmh-cat-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    background: #ffffff;
    text-align: left;
}

.kmh-cat-card__body h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    min-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kmh-cat-card__body p {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* ==========================================================================
   4. Brands
   ========================================================================== */
.kmh-brands {
    background: linear-gradient(160deg, var(--kmh-ink) 0%, var(--kmh-ink-2) 100%);
    padding-bottom: 56px;
    overflow: hidden;
}

.kmh-brands__rail {
    margin-top: 8px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.kmh-brands__track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: kmh-marquee 38s linear infinite;
}

.kmh-brand-pill {
    flex: 0 0 auto;
    min-width: 150px;
    height: 72px;
    padding: 0 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}

@keyframes kmh-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   5 & 7. Products
   ========================================================================== */
.kmh-products {
    background: var(--kmh-mist);
}

.kmh-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kmh-product-card {
    background: #fff;
    border: 1px solid #fedc19;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
    height: 100%;
}

.kmh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.kmh-product-card__media {
    position: relative;
    background: #f8fafc;
    aspect-ratio: 4 / 3;
}

.kmh-product-card__image-link,
.kmh-product-card__media img {
    width: 100%;
    height: 100%;
    display: block;
}

.kmh-product-card__media img {
    object-fit: cover;
    padding: 0;
    transition: transform 0.4s ease;
}

.kmh-product-card:hover .kmh-product-card__media img {
    transform: scale(1.04);
}

.kmh-product-card__badge {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 2;
    background: #fedc19;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 6px 14px 6px 12px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kmh-product-card__badge span {
    display: block;
    line-height: 1.2;
}

.kmh-product-card__badge--sale {
    background: #fedc19;
    color: #111827;
}

.kmh-product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.kmh-product-card:hover .kmh-product-card__actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.kmh-product-card__icon-form {
    margin: 0;
    padding: 0;
}

.kmh-product-card__icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eceff3;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.kmh-product-card__icon-btn:hover {
    background: #fedc19;
    color: #111827;
    transform: translateY(-1px);
}

.kmh-product-card__icon-btn .lnr {
    font-size: 16px;
    line-height: 1;
}

.kmh-product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.kmh-product-card__name {
    margin: 0 0 4px;
}

.kmh-product-card__name h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kmh-product-card__name h3 a {
    color: inherit;
    text-decoration: none;
}

.kmh-product-card__name h3 a:hover {
    color: #111827;
    text-decoration: underline;
}

.kmh-product-card__subtitle {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.35;
    text-transform: uppercase;
    min-height: 20px;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kmh-product-card__specs {
    margin: 0 0 14px;
    flex: 0 0 auto;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    overflow: hidden;
}

.kmh-product-card__specs p {
    margin: 0 0 4px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kmh-product-card__specs p strong {
    color: #1f2937;
    font-weight: 700;
}

.kmh-product-card__btns {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex-shrink: 0;
}

.kmh-product-card__cart-form {
    margin: 0;
}

.kmh-product-card__btn {
    width: 100%;
    min-height: 38px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 8px 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.kmh-product-card__btn--view {
    background: #fedc19;
    color: #111827;
}

.kmh-product-card__btn--view:hover {
    background: #f0d000;
    color: #111827;
    text-decoration: none;
}

.kmh-product-card__btn--cart {
    background: #111827;
    color: #fedc19;
}

.kmh-product-card__btn--cart:hover {
    background: #1f2937;
    color: #fedc19;
}

.kmh-product-card__btn .fa {
    font-size: 14px;
}

.kmh-product-card__category {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kmh-product-card__title {
    margin: 6px 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.kmh-product-card__title a:hover {
    color: #b45309;
}

.kmh-product-card__rating {
    margin-top: 8px;
    color: #d6dce3;
    font-size: 14px;
    letter-spacing: 1px;
}

.kmh-product-card__rating .is-on {
    color: var(--kmh-brass);
}

.kmh-product-card__price {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.kmh-product-card__price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--kmh-text);
}

.kmh-product-card__price-old {
    font-size: 0.9rem;
    color: var(--kmh-muted);
    text-decoration: line-through;
}

.kmh-product-card__cart {
    margin-top: auto;
    padding-top: 14px;
}

.kmh-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: -8px 0 28px;
}

.kmh-chip {
    border: 1px solid var(--kmh-line);
    background: var(--kmh-card);
    color: var(--kmh-muted);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 16px;
    font-family: var(--kmh-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--kmh-ease);
}

.kmh-chip:hover,
.kmh-chip.is-active {
    background: var(--kmh-ink);
    border-color: var(--kmh-ink);
    color: var(--kmh-yellow);
}

/* ==========================================================================
   6. Promo
   ========================================================================== */
.kmh-promo {
    position: relative;
    padding: 80px 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(254, 220, 25, 0.22), transparent 40%),
        linear-gradient(120deg, #111827, #1f2937);
    color: #fff;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.kmh-promo__inner {
    position: relative;
    max-width: 720px;
}

.kmh-promo__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--kmh-brass);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kmh-promo h2 {
    margin: 0;
    font-family: var(--kmh-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
}

.kmh-promo p {
    margin: 14px auto 26px;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   8. Why Choose Us
   ========================================================================== */
.kmh-why {
    background: linear-gradient(165deg, var(--kmh-ink-2), var(--kmh-ink));
}

.kmh-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.kmh-why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--kmh-radius);
    padding: 26px 22px;
    color: #fff;
    transition: transform var(--kmh-ease), background var(--kmh-ease);
}

.kmh-why-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

.kmh-why-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(201, 162, 39, 0.15);
    color: var(--kmh-brass);
    margin-bottom: 16px;
}

.kmh-why-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.kmh-why-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.93rem;
}

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
.kmh-testimonials {
    background: var(--kmh-mist);
}

.kmh-testimonials__viewport {
    position: relative;
}

.kmh-testimonials__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.kmh-testimonial-card {
    scroll-snap-align: start;
    background: var(--kmh-card);
    border: 1px solid var(--kmh-line);
    border-radius: var(--kmh-radius);
    padding: 24px;
    box-shadow: var(--kmh-shadow);
    min-height: 100%;
}

.kmh-testimonial-card__rating {
    color: var(--kmh-brass);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.kmh-testimonial-card__text {
    margin: 0;
    color: var(--kmh-text);
    font-size: 0.98rem;
    line-height: 1.6;
}

.kmh-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.kmh-testimonial-card__author img,
.kmh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.kmh-avatar {
    display: grid;
    place-items: center;
    background: var(--kmh-ink);
    color: var(--kmh-brass);
    font-weight: 800;
    font-size: 14px;
}

.kmh-testimonial-card__author strong {
    display: block;
    font-size: 0.95rem;
}

.kmh-testimonial-card__author span {
    display: block;
    font-size: 12px;
    color: var(--kmh-muted);
}

.kmh-testimonials__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* ==========================================================================
   10. CTA
   ========================================================================== */
.kmh-cta {
    background: var(--kmh-mist-2);
}

.kmh-cta__inner {
    text-align: center;
    background:
        linear-gradient(135deg, rgba(254, 220, 25, 0.14), rgba(17, 24, 39, 0.04)),
        var(--kmh-card);
    border: 1px solid var(--kmh-line);
    border-radius: calc(var(--kmh-radius) + 4px);
    padding: clamp(36px, 6vw, 64px) 28px;
    box-shadow: var(--kmh-shadow);
}

.kmh-cta__inner h2 {
    margin: 0;
    font-family: var(--kmh-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--kmh-text);
}

.kmh-cta__inner p {
    margin: 12px auto 0;
    max-width: 48ch;
    color: var(--kmh-muted);
}

.kmh-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.kmh-cta .kmh-btn--ghost {
    color: var(--kmh-text);
    border-color: var(--kmh-line);
    background: transparent;
}

.kmh-cta .kmh-btn--ghost:hover {
    background: var(--kmh-ink);
    border-color: var(--kmh-ink);
    color: #fff;
}

/* ==========================================================================
   11. Blogs
   ========================================================================== */
.kmh-blogs {
    background: var(--kmh-mist);
}

.kmh-blogs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kmh-blog-card {
    background: var(--kmh-card);
    border: 1px solid var(--kmh-line);
    border-radius: var(--kmh-radius);
    overflow: hidden;
    box-shadow: var(--kmh-shadow);
    transition: transform var(--kmh-ease), box-shadow var(--kmh-ease);
}

.kmh-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kmh-shadow-lg);
}

.kmh-blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--kmh-mist-2);
}

.kmh-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.kmh-blog-card:hover .kmh-blog-card__media img {
    transform: scale(1.05);
}

.kmh-blog-card__body {
    padding: 18px 18px 20px;
}

.kmh-blog-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--kmh-muted);
    margin-bottom: 8px;
}

.kmh-blog-card__meta span {
    color: #b45309;
    font-weight: 700;
}

.kmh-blog-card h3,
.kmh-blog-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.kmh-blog-card h3 a:hover,
.kmh-blog-card__title a:hover {
    color: #b45309;
}

/* ==========================================================================
   12. Bulk inquiry
   ========================================================================== */
.kmh-bulk {
    padding: 56px 0 80px;
    background: var(--kmh-mist);
}

.kmh-bulk__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(110deg, #111827, #1f2937);
    color: #fff;
    border-radius: calc(var(--kmh-radius) + 4px);
    padding: 36px 40px;
    box-shadow: var(--kmh-shadow-lg);
    border: 2px solid var(--kmh-yellow);
}

.kmh-bulk__inner h2 {
    margin: 0;
    font-family: var(--kmh-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.kmh-bulk__inner p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 48ch;
}

.kmh-bulk .kmh-btn--primary {
    background: var(--kmh-yellow);
    color: var(--kmh-ink);
    border-color: var(--kmh-yellow);
    box-shadow: var(--kmh-shadow-yellow);
}

.kmh-bulk .kmh-btn--primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--kmh-ink);
}

/* ── FAB ── */
.kmh-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--kmh-ink);
    color: var(--kmh-brass);
    display: grid;
    place-items: center;
    box-shadow: var(--kmh-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--kmh-ease), transform var(--kmh-ease);
}

.kmh-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.kmh-fab:hover {
    background: var(--kmh-yellow);
    color: var(--kmh-ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
    .kmh-categories__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .kmh-features__grid,
    .kmh-why__grid,
    .kmh-products__grid,
    .kmh-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kmh-blogs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kmh-hero__title {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .kmh-section {
        padding: 56px 0;
    }

    .kmh-trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .kmh-features__grid,
    .kmh-why__grid,
    .kmh-products__grid,
    .kmh-categories__grid,
    .kmh-blogs__grid {
        grid-template-columns: 1fr;
    }

    .kmh-section__bar {
        align-items: flex-start;
    }

    .kmh-bulk__inner {
        padding: 28px 22px;
    }

    .kmh-product-card__actions {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-homepage *,
    .km-homepage *::before,
    .km-homepage *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .kmh-brands__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0 16px;
    }
}
