/* ============================================================
   Promo Carousel — bosh sahifadagi aylanuvchi reklama
   Sodda, chiroyli, tushunarli. Barcha temada ishlaydi.
   ============================================================ */

/* ===== Oq-qora yo'nalish: sayt asosiy accenti qora ===== */
:root {
    --mc-accent: #1d1d1f;
    --mc-accent-hover: #000000;
}

/* Gorizontal overflow himoyasi — `clip` vertikal scroll'ni buzmaydi
   (html/body'da `overflow-x:hidden` iOS'da scroll'ni sindiradi, shuning uchun ishlatmaymiz) */
.mc-redesign main {
    overflow-x: clip;
}

/* Mobil: katalog 2 ustun + section-header stack (260px min overflow'ni yo'qotadi) */
@media (max-width: 720px) {
    /* Kenglikni viewport bilan cheklash (overflow-x:hidden ISHLATMAYMIZ — scroll'ni buzadi) */
    main > section,
    .mc-container,
    .container,
    .hero-store__inner,
    .promo__viewport {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .hero-store__title { overflow-wrap: break-word; }

    .mc-redesign #catalog .section-header {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    .mc-redesign #catalog .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    #catalog .product-card { min-width: 0; }
    #catalog .container { padding-left: 16px; padding-right: 16px; }

    /* Afzalliklar (why-card) — 1 ustun, kenglik cheklangan */
    .mc-redesign #advantages .why-grid { grid-template-columns: 1fr !important; }
    #advantages .why-card { min-width: 0; max-width: 100%; box-sizing: border-box; }
}

/* ===== Minimal tune — sodda, yupqa, ortiqcha bezaksiz ===== */
/* Dekorativ 'glow' orblarni yashirish (sayt bo'ylab) */
.glow-sphere { display: none !important; }

/* Kartalar: yengilroq soya, yupqa hairline chegara */
.mc-redesign .glass-card,
.mc-redesign .bs-card,
.mc-redesign .shop-path,
.mc-redesign .why-card,
.mc-redesign .catalog-section .product-card {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05) !important;
    border: 1px solid #ececf0 !important;
}
.mc-redesign .glass-card:hover,
.mc-redesign .product-card:hover,
.mc-redesign .bs-card:hover {
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08) !important;
}

/* Footer — ishlab chiquvchi krediti */
.footer-dev { margin-top: 6px; font-size: 13px; opacity: 0.75; }
.footer-dev a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-dev a:hover { opacity: 1; }

.promo {
    padding: 28px 0 8px;
}

/* Flex-order tartibida hero'dan keyin, shop-paths'dan oldin turishi uchun */
.mc-redesign #promo { order: 1; }

.promo__viewport {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.promo__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.promo__slide {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 300px;
    padding: 44px 52px;
    color: #fff;
    overflow: hidden;
}

/* Rang variantlari (yumshoq gradientlar) */
.promo--blue  { background: linear-gradient(120deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%); }
.promo--green { background: linear-gradient(120deg, #065f46 0%, #0d9488 55%, #14b8a6 100%); }
.promo--amber { background: linear-gradient(120deg, #9a3412 0%, #ea580c 55%, #f59e0b 100%); }
.promo--dark  { background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #334155 100%); }

.promo__body {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.promo__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.promo__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 12px;
    color: #fff;
}

.promo__text {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.5;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
}

.promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.promo__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26); }

.promo__img {
    position: relative;
    z-index: 2;
    max-width: 300px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
    flex-shrink: 0;
}

/* Prev / Next tugmalari */
.promo__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.15s ease;
}
.promo__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.promo__nav--prev { left: 16px; }
.promo__nav--next { right: 16px; }

/* Dotlar */
.promo__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.promo__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(120, 120, 128, 0.3);
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}
.promo__dot.is-active {
    width: 26px;
    border-radius: 100px;
    background: #1d1d1f;
}

/* Mobil */
@media (max-width: 720px) {
    .promo__slide {
        padding: 28px 22px;
        min-height: 260px;
    }
    .promo__body { max-width: 100%; }
    .promo__img {
        position: absolute;
        right: -30px;
        bottom: -10px;
        max-width: 180px;
        max-height: 180px;
        opacity: 0.35;
    }
    .promo__nav { display: none; }
    .promo__title { font-size: 24px; }
}
