/* Doruk Pet Market — Mobil stiller (max-width: 1199px) */

@media (max-width: 1199.98px) {
    /* ── Header ── */
    .dp-mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        gap: 5px;
    }

    .dp-mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333e48;
        border-radius: 2px;
        transition: transform .25s, opacity .25s;
    }

    .dp-mobile-menu-btn.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .dp-mobile-menu-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .dp-mobile-menu-btn.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .dp-mobile-search {
        padding: 0 .5rem .75rem;
    }

    .dp-mobile-search .input-group {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        border-radius: 999px;
        overflow: hidden;
    }

    .dp-mobile-search .form-control {
        border: 1px solid #fed700;
        border-right: 0;
        height: 42px;
        font-size: 14px;
    }

    .dp-mobile-search .btn {
        height: 42px;
        padding: 0 1rem;
    }

    #header .navbar-brand img {
        max-height: 48px;
        width: auto;
    }

    #header .bg-primary-down-lg {
        padding-top: .5rem !important;
        padding-bottom: .5rem !important;
    }

    /* ── Mobil menü paneli ── */
    .dp-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }

    .dp-mobile-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .dp-mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 88vw);
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform .3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .15);
        overflow: hidden;
    }

    .dp-mobile-nav.is-open {
        transform: translateX(0);
    }

    .dp-mobile-nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        flex-shrink: 0;
    }

    .dp-mobile-nav__header img {
        max-height: 40px;
        width: auto;
    }

    .dp-mobile-nav__close {
        width: 36px;
        height: 36px;
        border: none;
        background: #fff;
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        color: #333e48;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    }

    .dp-mobile-nav__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .dp-mobile-nav__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dp-mobile-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: .85rem 1rem;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        font-size: .95rem;
        font-weight: 600;
        color: #333e48;
        text-align: left;
        cursor: pointer;
    }

    .dp-mobile-nav__toggle::after {
        content: '+';
        font-size: 1.1rem;
        color: #fed700;
        font-weight: 700;
    }

    .dp-mobile-nav__item.is-open .dp-mobile-nav__toggle::after {
        content: '−';
    }

    .dp-mobile-nav__sub {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none;
        background: #f8f9fa;
    }

    .dp-mobile-nav__item.is-open .dp-mobile-nav__sub {
        display: block;
    }

    .dp-mobile-nav__sub a {
        display: block;
        padding: .65rem 1rem .65rem 1.5rem;
        color: #555;
        font-size: .9rem;
        border-bottom: 1px solid #eee;
        text-decoration: none;
    }

    .dp-mobile-nav__sub a:hover {
        color: #0062bd;
        background: #fff;
    }

    .dp-mobile-nav__footer {
        padding: .75rem 1rem;
        border-top: 1px solid #eee;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .dp-mobile-nav__footer a {
        flex: 1 1 auto;
        text-align: center;
        padding: .5rem .75rem;
        background: #fed700;
        color: #333e48;
        font-weight: 600;
        font-size: .85rem;
        border-radius: 8px;
        text-decoration: none;
    }

    body.dp-mobile-nav-open {
        overflow: hidden;
    }

    /* ── Markalar (yatay kaydırma) ── */
    .dp-brands-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding: 4px 2px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dp-brands-scroll::-webkit-scrollbar {
        display: none;
    }

    .dp-brand-card {
        flex: 0 0 88px;
        scroll-snap-align: start;
        text-align: center;
        text-decoration: none;
        color: inherit;
    }

    .dp-brand-card img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 6px;
        background: #fff;
        margin: 0 auto;
        display: block;
    }

    .dp-brand-card span {
        display: block;
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.3;
        color: #333e48;
        font-weight: 600;
        word-break: break-word;
        overflow: hidden;
        max-height: 2.6em;
    }

    /* ── Slider ── */
    .min-height-420,
    .min-height-490 {
        min-height: auto !important;
    }

    .bg-img-hero .js-slide img {
        max-height: 220px;
        object-fit: cover;
        width: 100%;
    }

    /* ── Ürün kartları ── */
    .product-item {
        padding-left: 6px;
        padding-right: 6px;
    }

    .product-item__inner {
        padding: .75rem !important;
    }

    .img-urun {
        max-height: 140px;
        object-fit: contain;
    }

    .section-title {
        font-size: 1.15rem;
    }

    /* ── Footer ── */
    footer .pt-8 {
        padding-top: 2rem !important;
    }
}

/* Masaüstünde mobil bileşenleri gizle */
@media (min-width: 1200px) {
    .dp-mobile-menu-btn,
    .dp-mobile-search,
    .dp-mobile-nav,
    .dp-mobile-overlay,
    .dp-brands-mobile {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .dp-brands-desktop {
        display: none !important;
    }
}

/* Üst menü mega dropdown arka planı */
@media (min-width: 1200px) {
    .hs-mega-menu.u-header__sub-menu.dp-category-mega-menu {
        background-color: #fff !important;
        background-repeat: no-repeat;
        background-position: right center;
        background-size: contain;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
        border-bottom-right-radius: .4375rem;
        border-bottom-left-radius: .4375rem;
    }

    .hs-mega-menu.u-header__sub-menu.dp-category-mega-menu .u-header__mega-menu-wrapper {
        min-height: 220px;
    }
}

/* WhatsApp sabit destek butonu */
.dp-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none !important;
}

.dp-whatsapp-float:hover,
.dp-whatsapp-float:focus {
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .32);
}

.dp-whatsapp-product-btn {
    background-color: #25d366;
    border-color: #25d366;
}

.dp-whatsapp-product-btn:hover,
.dp-whatsapp-product-btn:focus {
    background-color: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
}

@media (max-width: 575.98px) {
    .dp-whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}
