/* =====================================================================
   GENZLO - homepage
   ===================================================================== */

.hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 18px 0 22px; }
.hero-grid { display: grid; grid-template-columns: 1fr 310px; gap: 16px; align-items: stretch; }

.hero-slider { position: relative; border-radius: var(--r-xl); overflow: hidden; height: auto; min-height: 500px; background: var(--c-dark); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
    background: linear-gradient(120deg, var(--c-dark) 0%, var(--c-dark-3) 100%);
    display: flex; align-items: center; padding: 40px 50px; pointer-events: none;
    width: 100%; height: 100%; overflow: hidden;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
/* Full-bleed background image that always fills the whole card */
.hero-slide-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; z-index: 0; display: block;
}
/* Readability overlay, does not create any solid/empty band */
.hero-slide-shade {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(18,16,20,.82) 0%, rgba(18,16,20,.45) 55%, rgba(18,16,20,.12) 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: #ffd2d5; margin-bottom: 10px;
}
.hero-copy h1 { font-size: 2.1rem; line-height: 1.15; margin-bottom: 8px; color: #fff; letter-spacing: -.03em; }
.hero-copy p { font-size: .94rem; color: #cbd5e1; margin-bottom: 20px; max-width: 460px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.hero-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero-dots { position: absolute; bottom: 14px; left: 34px; display: flex; gap: 6px; z-index: 3; }
.hero-dots .dot { width: 22px; height: 4px; border-radius: 3px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots .dot.active { background: var(--c-brand); width: 34px; }

.hero-side { display: flex; flex-direction: column; gap: 12px; }

/* Category panel that stretches to match the hero image height */
.side-cats {
    flex: 1; display: flex; flex-direction: column;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r-xl); padding: 16px; box-shadow: var(--sh-sm);
}
.side-cats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-cats-head h3 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 7px; }
.side-cats-head svg { color: var(--c-brand); }
.side-cats-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.mini-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    text-align: center; padding: 12px 8px; border: 1px solid var(--c-border); border-radius: var(--r-lg);
    transition: .16s;
}
.mini-cat:hover { border-color: var(--c-brand); box-shadow: var(--sh-md); transform: translateY(-2px); }
.mini-cat-ico {
    width: 42px; height: 42px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand);
    display: flex; align-items: center; justify-content: center;
}
.mini-cat:hover .mini-cat-ico { background: var(--c-brand-grad); color: #fff; }
.mini-cat-name { font-size: .78rem; font-weight: 700; line-height: 1.2; }

.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.side-stats div {
    background: var(--c-dark); color: #fff; border-radius: var(--r-lg); padding: 10px 8px; text-align: center;
}
.side-stats strong { display: block; font-size: 1.02rem; }
.side-stats span { font-size: .68rem; color: #94a3b8; }

.promo-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(120deg, #2a272c 0%, #47323b 55%, #f44152 150%);
    color: #fff; border-radius: var(--r-xl); padding: 22px 26px; margin: 26px 0;
}
.promo-strip h2 { color: #fff; margin: 8px 0 4px; font-size: 1.32rem; }
.promo-strip p { color: #cbd5e1; margin: 0; font-size: .87rem; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.why-card {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 16px; box-shadow: var(--sh-sm);
}
.why-card svg { color: var(--c-brand); margin-bottom: 8px; }
.why-card h3 { font-size: .92rem; margin-bottom: 3px; }
.why-card p { font-size: .8rem; color: var(--c-muted); margin: 0; }

@media (max-width: 1024px) {
    /* minmax(0,1fr) + min-width:0 stop the wide, scrollable category row from inflating the grid column. */
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-slider { min-width: 0; }
    .hero-side { flex-direction: row; flex-wrap: wrap; min-width: 0; }
    .side-cats { flex: 1 1 320px; min-width: 0; }
    .side-cats-grid { min-width: 0; }
    .side-stats { flex: 1 1 220px; min-width: 0; }
}
@media (max-width: 640px) {
    /* Slimmer hero: roughly half the desktop mobile height, tighter gap above the category nav. */
    .hero { padding: 10px 0 12px; }
    .hero-grid { gap: 10px; }
    .hero-slider { height: auto; min-height: 0; border-radius: var(--r-lg); }
    .hero-slide { padding: 16px 18px; }
    /* Let the active slide size the hero on mobile so its height shrinks to the content (about half). */
    .hero-slide.active { position: relative; inset: auto; height: auto; }
    .hero-copy h1 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 5px; }
    .hero-copy p { font-size: .78rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-kicker { font-size: .62rem; margin-bottom: 5px; }
    .hero-kicker svg { width: 12px; height: 12px; }
    .hero-actions { gap: 7px; }
    .hero-actions .btn { padding: 7px 12px; font-size: .76rem; border-radius: var(--r-sm); }
    .hero-actions .btn svg { width: 14px; height: 14px; }
    .hero-dots { left: 18px; bottom: 8px; }
    .hero-dots .dot { width: 16px; height: 3px; }
    .hero-dots .dot.active { width: 26px; }

    /* Categories: one compact horizontally-scrollable row so products appear sooner. */
    .hero-side { gap: 10px; }
    .side-cats { flex: 1 1 100%; padding: 10px; border-radius: var(--r-lg); }
    .side-cats-head { margin-bottom: 8px; }
    .side-cats-head h3 { font-size: .86rem; gap: 6px; }
    .side-cats-head svg { width: 14px; height: 14px; }
    .side-cats-head .link { font-size: .72rem; }
    .side-cats-grid {
        flex: none; display: flex; flex-wrap: nowrap; gap: 7px; min-width: 0;
        grid-auto-rows: auto; overflow-x: auto; padding-bottom: 3px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .side-cats-grid::-webkit-scrollbar { display: none; }
    .mini-cat { flex: 0 0 auto; width: 64px; padding: 8px 5px; gap: 4px; border-radius: var(--r-md); }
    .mini-cat-ico { width: 30px; height: 30px; border-radius: 9px; }
    .mini-cat-ico svg { width: 15px; height: 15px; }
    .mini-cat-name { font-size: .63rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .side-stats { flex: 1 1 100%; gap: 6px; min-width: 0; }
    .side-stats div { padding: 6px 4px; border-radius: var(--r-md); min-width: 0; }
    .side-stats strong { font-size: .88rem; }
    .side-stats span { font-size: .6rem; }

    .promo-strip { padding: 18px; }
    .promo-strip h2 { font-size: 1.12rem; }
}
