/* Ana sayfa vitrini. Yalnızca ana sayfada yüklenir; panel ve diğer mağaza sayfalarını etkilemez. */
.mh {
    --mh-kina: #5e1020;
    --mh-kina-deep: #450a16;
    --mh-altin: #f4bb4e;
    --mh-altin-deep: #e3a22c;
    --mh-gul: #fbf1ec;
    --mh-ink: #1f1a17;
    --mh-soft: #5f564f;
    --mh-line: #e9e4df;
    --mh-brand: #f2630d;
    --mh-brand-deep: #bf4700;
    --mh-gap: 12px;
}

.mh-wrap { margin-inline: auto; width: 100%; max-width: 1320px; padding-inline: 16px; }

/* Vitrin */
.mh-hero { display: grid; gap: var(--mh-gap); margin-top: 16px; }
.mh-pitch {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    overflow: hidden; border-radius: 20px; background: var(--mh-kina); color: #fff; padding: 28px 22px;
}
.mh-pitch::after {
    content: ''; position: absolute; right: -90px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%;
    border: 44px solid var(--mh-kina-deep); pointer-events: none;
}
.mh-pitch > * { position: relative; z-index: 1; }
.mh-pitch h1 { margin: 0; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.mh-pitch p { margin: 12px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.5; color: #f6e4e0; }
.mh-pitch strong { color: var(--mh-altin); font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mh-cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 12px;
    font-size: 15px; font-weight: 700; transition: background-color .15s, color .15s;
}
.mh-cta-gold { background: var(--mh-altin); color: var(--mh-ink); }
.mh-cta-gold:hover { background: var(--mh-altin-deep); }
.mh-cta-ghost { border: 1.5px solid #ffffff66; color: #fff; }
.mh-cta-ghost:hover { background: #fff; color: var(--mh-kina); }
.mh-pitch a:focus-visible, .mh-band a:focus-visible { outline-color: var(--mh-altin); }

.mh-mosaic {
    display: flex; gap: var(--mh-gap); margin-inline: -16px; padding-inline: 16px; overflow-x: auto;
    scroll-snap-type: x proximity; scrollbar-width: none;
}
.mh-mosaic::-webkit-scrollbar, .mh-track::-webkit-scrollbar { display: none; }
.mh-tile {
    position: relative; display: block; flex: 0 0 56%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px;
    background: var(--mh-gul); scroll-snap-align: start; scroll-margin-left: 16px;
}
.mh-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mh-tile-text {
    position: absolute; inset: auto 0 0; padding: 44px 14px 12px; color: #fff;
    background: linear-gradient(to top, rgba(20, 8, 8, .86), rgba(20, 8, 8, .5) 55%, transparent);
}
.mh-tile-name { display: block; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.mh-tile-meta { display: block; margin-top: 3px; font-size: 13px; color: #ffffffe0; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .mh-tile:hover img { transform: scale(1.05); } .mh-tile:hover .mh-tile-name { text-decoration: underline; } }

/* Güven satırı */
.mh-assure { display: grid; gap: 10px; margin-top: 16px; padding: 14px 0; border-block: 1px solid var(--mh-line); }
.mh-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--mh-soft); }
.mh-assure b { display: block; font-size: 14px; font-weight: 600; color: var(--mh-ink); }
.mh-assure svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--mh-brand-deep); }

/* Kampanya ve en yüksek indirim */
.mh-promo { display: grid; gap: var(--mh-gap); margin-top: 28px; }
.mh-slides { position: relative; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--mh-gul); }
.mh-slides img { display: block; width: 100%; aspect-ratio: 8 / 3; object-fit: cover; }
.mh-slide-prev, .mh-slide-next { top: auto; bottom: 10px; left: auto; transform: none; }
.mh-slide-prev { right: 52px; }
.mh-slide-next { right: 10px; }
.mh-slide-text { display: flex; aspect-ratio: 8 / 3; flex-direction: column; justify-content: center; padding: 0 28px; }
.mh-slide-text b { font-size: clamp(20px, 3vw, 34px); line-height: 1.15; }
.mh-deal {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; padding: 12px;
    border-radius: 16px; background: var(--mh-gul);
}
.mh-deal-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #fff; }
.mh-deal-image img { width: 100%; height: 100%; object-fit: cover; }
.mh-deal-label { font-size: 13px; font-weight: 700; color: var(--mh-kina); }
.mh-deal-title { margin: 0; font-weight: 400; }
.mh-deal-name { display: -webkit-box; margin-top: 2px; overflow: hidden; font-size: 14px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mh-deal-name:hover { text-decoration: underline; }
.mh-deal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mh-deal-price b { font-size: 21px; font-weight: 800; color: var(--mh-brand-deep); }
.mh-deal-price s { font-size: 13px; color: #6f665f; }
.mh-deal-off { border-radius: 6px; background: var(--mh-kina); padding: 1px 6px; font-size: 12px; font-weight: 700; color: #fff; }
.mh-deal form, .mh-deal-go { margin-top: 10px; }
.mh-buy {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--mh-brand-deep); padding: 8px 14px; font-size: 14px; font-weight: 700; color: #fff; transition: background-color .15s;
}
.mh-buy:hover { background: #9f3b00; }

/* Kategoriler */
.mh-section { margin-top: 36px; }
.mh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mh-head h2 { margin: 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.mh-head-side { display: flex; flex: none; align-items: center; gap: 10px; }
.mh-more { font-size: 14px; font-weight: 600; color: var(--mh-brand-deep); white-space: nowrap; }
.mh-more:hover { text-decoration: underline; }
.mh-track {
    display: flex; gap: var(--mh-gap); margin-inline: -16px; padding: 2px 16px 6px; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none;
}
.mh-chip { flex: 0 0 104px; scroll-snap-align: start; }
.mh-chip a { display: block; }
.mh-chip img, .mh-chip-empty { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--mh-gul); object-fit: cover; font-size: 22px; font-weight: 700; color: var(--mh-kina); }
.mh-chip span:last-child { display: -webkit-box; margin-top: 7px; overflow: hidden; font-size: 13px; line-height: 1.25; font-weight: 500; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mh-chip a:hover span:last-child { color: var(--mh-brand-deep); text-decoration: underline; }

/* Raflar */
.mh-arrows { display: none; gap: 6px; }
.mh-arrow {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #d6cfc8; border-radius: 50%;
    background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--mh-ink); transition: background-color .15s, border-color .15s;
}
.mh-arrow:hover { border-color: var(--mh-ink); background: var(--mh-ink); color: #fff; }
.mh-slot { position: relative; flex: 0 0 46%; min-width: 0; scroll-snap-align: start; }
.mh-slot > article { height: 100%; }
.mh-rank {
    position: absolute; z-index: 2; left: 8px; bottom: auto; top: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--mh-kina); font-size: 13px; font-weight: 700; color: #fff; pointer-events: none; font-variant-numeric: tabular-nums;
}
.mh-slot-ranked article > a > span:first-of-type { top: 42px; }

/* Ürün kartı: yalnızca ana sayfada */
.mh-slot article { border-radius: 14px; border-color: var(--mh-line); }
.mh-slot article > a { aspect-ratio: 1; }
.mh-slot article > a > img { object-fit: cover; transition: transform .3s ease; }
@media (hover: hover) { .mh-slot article:hover > a > img { transform: scale(1.04); } }
.mh-slot h3 strong { display: none; }
.mh-slot h3 { font-size: 13.5px; line-height: 1.3; min-height: 2.6em; }
.mh-slot article > div { gap: 5px; padding: 11px; }
.mh-slot p.text-brand-deep { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mh-slot .btn-sm { min-height: 36px; border-color: var(--mh-brand-deep); background: var(--mh-brand-deep); font-size: 13px; font-weight: 700; color: #fff; }
.mh-slot .btn-sm:hover { border-color: #9f3b00; background: #9f3b00; color: #fff; }
.mh-slot article > a span.rounded { border-radius: 6px; font-size: 12px; }
.mh-slot article > a span.bg-brand-deep { background: var(--mh-kina); }

/* Vurgulu raflar */
.mh-band { margin-top: 36px; padding-block: 24px; background: var(--mh-gul); }
.mh-band .mh-section { margin-top: 0; }
.mh-band-dark { background: var(--mh-kina); color: #fff; }
.mh-band-dark .mh-more { color: var(--mh-altin); }
.mh-band-dark article { color: var(--mh-ink); }
.mh-count { border-radius: 8px; background: var(--mh-altin); padding: 4px 10px; font-size: 14px; font-weight: 700; color: var(--mh-ink); font-variant-numeric: tabular-nums; }
.mh-banners { display: grid; gap: var(--mh-gap); margin-top: 36px; }

/* Toptan */
.mh-bulk {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; padding: 24px 22px; border-radius: 20px;
    background: var(--mh-kina); color: #fff;
}
.mh-bulk h2 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.mh-bulk p { margin: 6px 0 0; max-width: 56ch; font-size: 15px; color: #f6e4e0; }
.mh-bulk .mh-actions { margin-top: 0; flex: none; }

@media (min-width: 640px) {
    .mh-assure { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .mh-assure li + li { padding-left: 20px; border-left: 1px solid var(--mh-line); }
    .mh-slot { flex-basis: 30%; }
    .mh-chip { flex-basis: 122px; }
    .mh-banners-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-banners-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mh-pitch { padding: 36px 32px; }
}

@media (min-width: 768px) {
    .mh-bulk { flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 36px; }
}

@media (min-width: 1024px) {
    .mh-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 18px; }
    .mh-pitch { padding: 40px; }
    .mh-mosaic {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
        height: clamp(420px, 36vw, 500px); margin: 0; padding: 0; overflow: visible;
    }
    .mh-tile { aspect-ratio: auto; min-width: 0; }
    .mh-tile:first-child { grid-column: span 2; grid-row: span 2; }
    .mh-tile:first-child .mh-tile-name { font-size: 24px; }
    .mh-mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .mh-mosaic-2, .mh-mosaic-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-mosaic-2 .mh-tile:first-child { grid-column: span 1; }
    .mh-mosaic-3 .mh-tile:first-child { grid-column: span 1; }
    .mh-mosaic-4 .mh-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .mh-promo-split { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
    .mh-deal { grid-template-columns: 1fr; align-content: center; padding: 14px; }
    .mh-deal-image { aspect-ratio: auto; height: clamp(96px, 10vw, 136px); }
    .mh-arrows { display: flex; }
    .mh-slot { flex-basis: calc((100% - 5 * var(--mh-gap)) / 6); }
    .mh-track { margin-inline: 0; padding-inline: 0; scroll-padding-left: 0; }
    .mh-chip { flex-basis: calc((100% - 9 * var(--mh-gap)) / 10); }
}

@media (prefers-reduced-motion: reduce) {
    .mh-track, .mh-mosaic { scroll-behavior: auto; }
    .mh-tile img, .mh-slot article > a > img { transition: none; transform: none !important; }
}
