﻿/* =========================
   Yem Dünyası — site.css (mega menu + mobile fix + deals)
   ========================= */

/* --- Theme tokens --- */
:root {
    --brand: #0ea5e9;
    --accent: #10b981;
    --ink: #111827;
    --muted: #6b7280;
    --bg: #f3f4f6
}

/* --- Base --- */
* {
    box-sizing: border-box
}

body {
    font-family: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    color: var(--ink);
    font-size: 1.05rem
}

.badge {
    font-weight: 600
}

.topbar {
    font-size: .875rem
}

.btn {
    padding: .65rem 1rem;
    font-weight: 600
}

.form-control {
    min-height: 44px
}

/* --- Buttons --- */
.btn-primary {
    background: var(--brand);
    border-color: var(--brand)
}

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand)
}

    .btn-outline-primary:hover {
        background: var(--brand);
        color: #fff
    }

/* --- Brand / Logo --- */
.logo-img {
    height: clamp(70px,10vw,70px);
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15))
}

.brand-badge {
    padding: .45rem .65rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid rgba(2,132,199,.10);
    box-shadow: 0 2px 10px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.08)
}

/* --- Navbar balance --- */
.main-nav {
    flex: 1 1 auto;
    align-items: center;
    gap: .5rem
}

.search-form {
    flex: 0 0 min(360px,28vw);
    margin-left: 1rem
}

@media (max-width:991.98px) {
    .search-form {
        display: none
    }
}

/* --- Top tabs feel --- */
.navbar .nav-link.btnish {
    border: 1px solid transparent;
    border-radius: .6rem;
    padding: .45rem .7rem;
    transition: background .2s,border-color .2s,box-shadow .2s,color .2s
}

    .navbar .nav-item:hover > .nav-link.btnish,
    .navbar .nav-link.btnish:focus, .navbar .nav-link.btnish.show {
        background: #eff8ff;
        border-color: var(--brand);
        color: var(--brand);
        box-shadow: 0 2px 8px rgba(14,165,233,.18)
    }

/* ---------------------------------
   DESKTOP DROPDOWN / MEGA MENU
----------------------------------*/
@media (min-width:992px) {
    .navbar .dropdown {
        position: static
    }
    /* mega için tam genişlik */
    .navbar .dropdown-menu {
        position: absolute;
        display: block; /* layer olarak var, görünmez */
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .12s ease,transform .12s ease;
        margin-top: .4rem;
        min-width: 620px;
        left: auto;
        right: auto
    }
        /* hover köprüsü */
        .navbar .dropdown-menu::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: -12px;
            height: 12px
        }

    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown.show > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: none
    }

    /* Mega panel: tam genişlik, içi grid */
    .dropdown-mega {
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        border-top: 1px solid #eef2f7;
        background: #fff
    }

        .dropdown-mega .container {
            padding: 1rem 0
        }

    .mega-cols {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(4,minmax(0,1fr))
    }

    .mega-col {
        min-width: 0
    }

    .dropdown-mega ul {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .dropdown-mega .dropdown-header {
        font-size: .85rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .02em;
        margin: .25rem 0 .4rem
    }

    .mega-links a {
        display: block;
        padding: .35rem .5rem;
        border-radius: .5rem;
        color: inherit;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

        .mega-links a:hover {
            background: #f3f4f6
        }

    /* Fırsatlar kutusu (sağ panel) */
    .mega-deals {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        padding: .75rem;
        box-shadow: 0 4px 14px rgba(2,132,199,.06)
    }

        .mega-deals .deal {
            display: flex;
            gap: .6rem;
            align-items: center;
            border: 1px solid #eef2f7;
            border-radius: 10px;
            padding: .5rem;
            margin-bottom: .5rem;
            overflow: hidden
        }

            .mega-deals .deal:last-child {
                margin-bottom: 0
            }

        .mega-deals img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 8px;
            flex: 0 0 auto
        }

        .mega-deals .text {
            min-width: 0
        }

        .mega-deals .title {
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis
        }

        .mega-deals .badge {
            background: linear-gradient(135deg,#0ea5e9,#38bdf8);
            color: #fff;
            border-radius: .5rem;
            padding: .15rem .4rem;
            font-size: .75rem
        }
}

/* ---------------------------------
   MOBILE DROPDOWN (Bootstrap default)
----------------------------------*/
@media (max-width:991.98px) {
    /* Hepsi kapalı başlar; sadece .show olan görünür */
    .navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        margin: .25rem 0 .5rem !important;
        min-width: 0 !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0
    }

        .navbar .dropdown-menu.show {
            display: block !important
        }

    .navbar .dropdown.show > .dropdown-menu {
        display: block !important
    }

    .navbar .dropdown-submenu > .dropdown-menu {
        left: 0 !important;
        margin: .25rem 0 0 1rem !important
    }
    /* Sadece collapse’ın kendisi scroll yapsın */
    #mainNav.show {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch
    }
    /* Üst sekmeler sade */
    .navbar .nav-link.btnish {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: .375rem;
        padding: .6rem .75rem;
        color: inherit
    }
}

/* --- Submenu positioning (generic) --- */
.dropdown-submenu {
    position: relative
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: .25rem;
        margin-right: .25rem
    }

/* --- Product cards --- */
.product-card img {
    object-fit: cover
}

.product-card .card-body {
    padding: .9rem
}

.price {
    letter-spacing: .2px
}

.product-card .btn-inspect {
    font-weight: 600;
    border-width: 2px;
    transition: all .2s ease
}

    .product-card .btn-inspect:hover {
        background-color: #0d6efd;
        color: #fff
    }

/* Qty + Add to cart (dikey hizalı) */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem
}

.product-qty {
    width: 160px
}

    .product-qty .btn-minus, .product-qty .btn-plus {
        width: 48px;
        font-size: 1.2rem;
        font-weight: 600;
        padding: .5rem 0
    }

    .product-qty .btn, .product-qty .form-control {
        height: 42px
    }

.qty-input {
    font-weight: 700;
    font-size: 1.15rem;
    max-width: 80px;
    text-align: center
}

.btn-add-to-cart {
    min-width: 160px;
    text-align: center
}

.product-card .qty-input::-webkit-outer-spin-button,
.product-card .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.product-card .qty-input {
    -moz-appearance: textfield
}

@media (max-width:576.98px) {
    .product-qty {
        width: 190px
    }

    .btn-add-to-cart {
        min-width: 8.5rem;
        padding: 10px 10px
    }

    main {
        padding-bottom: 84px
    }
    /* FAB ile çakışmayı önler */
}

/* --- Category tiles --- */
.cat-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    transition: transform .12s,box-shadow .12s,border-color .12s;
    color: inherit
}

    .cat-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(2,132,199,.10);
        border-color: #dbeafe
    }

.cat-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px
}

    .cat-icon i {
        font-size: 32px;
        line-height: 1
    }

/* --- Fixed header --- */
.site-header.fixed-top {
    z-index: 1040;
    box-shadow: none
}

.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.06)
}

main {
    padding-top: var(--header-h,120px)
}

/* --- Mobile CTA (WhatsApp & Sepetim) --- */
.mobile-cta {
    position: sticky;
    top: var(--header-h,0px);
    z-index: 1030;
    padding: .5rem 0
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 1050;
    text-decoration: none
}

    .whatsapp-fab i {
        font-size: 28px;
        line-height: 1
    }

    .whatsapp-fab:hover {
        filter: brightness(1.05)
    }

@media (max-width:576px) {
    .whatsapp-fab {
        right: 12px;
        bottom: 12px;
        width: 52px;
        height: 52px
    }
}

/* --- Cart toast --- */
.cart-toast {
    background: #fff;
    border-radius: 14px;
    padding: .75rem 1rem
}

.cart-toast-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover
}

.cart-toast-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827
}

.cart-toast-sub {
    color: #6b7280;
    font-weight: 600
}

/* --- Kargo takip timeline --- */
#trackTimeline li {
    position: relative;
    padding: .4rem .5rem .4rem 1.4rem;
    border-left: 2px solid #e5e7eb
}

    #trackTimeline li::before {
        content: "";
        position: absolute;
        left: -6px;
        top: .6rem;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #0ea5e9
    }

#trackTimeline .time {
    font-weight: 600;
    margin-right: .25rem
}

#trackTimeline .loc {
    color: #6b7280
}

/* Hızlı ikonlar (Kargo Takip, Üye Ol, Giriş) */
.mobile-quick {
    padding: .4rem .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

    .mobile-quick a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        color: var(--brand);
        transition: transform .12s ease,box-shadow .12s ease
    }

        .mobile-quick a:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(2,132,199,.12)
        }

    .mobile-quick i {
        line-height: 1;
        font-size: 1.35rem
    }

@media (min-width:992px) {
    .mobile-quick a {
        width: 40px;
        height: 40px
    }

    .mobile-quick i {
        font-size: 1.25rem
    }
}

/* Anasayfa bölüm başlık şeridi */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .35rem
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    border-left: 4px solid var(--brand);
    padding-left: .75rem;
    margin-bottom: .5rem
}

.view-all {
    font-weight: 700;
    text-decoration: none;
    color: #0ea5e9;
    padding: .35rem .65rem;
    border-radius: .5rem;
    transition: background .15s
}

    .view-all:hover {
        background: #e0f2fe
    }

/* Sosyal medya ufak butonlar */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: .4rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    transition: background .2s;
    text-decoration: none
}

    .social-icons a:hover {
        background: #0284c7
    }

/* büyük CTA butonları */
.cta-large {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    transition: transform .12s,box-shadow .12s,border-color .12s
}

    .cta-large i {
        font-size: 1.35rem;
        color: var(--brand)
    }

    .cta-large:hover {
        transform: translateY(-2px);
        border-color: #dbeafe;
        box-shadow: 0 8px 24px rgba(2,132,199,.12)
    }

/* kampanya kartları (sayfa içi) */
.promo-card {
    position: relative;
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .12s,box-shadow .12s,border-color .12s
}

    .promo-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block
    }

    .promo-card:hover {
        transform: translateY(-3px);
        border-color: #dbeafe;
        box-shadow: 0 10px 28px rgba(2,132,199,.12)
    }

.ribbon {
    position: absolute;
    left: .75rem;
    top: .75rem;
    background: linear-gradient(135deg,#0ea5e9,#38bdf8);
    color: #fff;
    font-weight: 800;
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-size: .8rem
}

/* blog kartları */
.blog-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .12s,box-shadow .12s,border-color .12s
}

    .blog-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block
    }

    .blog-card:hover {
        transform: translateY(-3px);
        border-color: #dbeafe;
        box-shadow: 0 10px 28px rgba(2,132,199,.10)
    }

/* Özellik kutuları */
.feature-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem .75rem;
    transition: all .2s ease-in-out;
    cursor: default;
    min-height: 100%
}

    .feature-box:hover {
        border-color: var(--brand);
        box-shadow: 0 6px 18px rgba(14,165,233,.15);
        transform: translateY(-3px);
        background: #f9fafb
    }

    .feature-box i {
        font-size: 1.7rem;
        transition: transform .2s ease,color .2s ease
    }

    .feature-box:hover i {
        transform: scale(1.2)
    }

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .2s ease,box-shadow .2s ease
}

.feature-box:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,.18)
}

/* Genel bölüm aralığı */
.section {
    padding: 1.25rem 0
}

@media (min-width:992px) {
    .section {
        padding: .50rem 0
    }
}

.soft-hr {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg,transparent,#e5e7eb,transparent);
    margin: 1rem 0 1.25rem
}

@media (min-width:992px) {
    .soft-hr {
        margin: 1.25rem 0 1.5rem
    }
}

/* Hızlı Kısayollar bandı */
.band {
    background: linear-gradient(180deg,#f8fbff 0%,#ffffff 60%)
}

.section-card {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(2,132,199,.06);
    padding: 1rem
}

@media (min-width:992px) {
    .section-card {
        padding: 1.25rem
    }
}

/* Hero spacing */
.hero {
    margin-bottom: .5rem
}

@media (min-width:992px) {
    .hero {
        margin-bottom: .75rem
    }
}

/* MOBİL yatay scroll (kısayollar) */
.shortcut-scroll {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: .5rem .25rem 2px;
    -webkit-overflow-scrolling: touch
}

    .shortcut-scroll::-webkit-scrollbar {
        display: none
    }

.shortcut-pill {
    white-space: nowrap;
    padding: .55rem .9rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all .2s ease
}

    .shortcut-pill:hover {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand)
    }

    .shortcut-pill:focus {
        outline: 2px solid var(--brand);
        outline-offset: 2px
    }

/* MASAÜSTÜ kısayol kartları */
.shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    text-align: center;
    padding: 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
    height: 100%
}

    .shortcut-card i {
        font-size: 1.6rem;
        color: var(--brand)
    }

    .shortcut-card .title {
        font-weight: 700
    }

    .shortcut-card .sub {
        font-size: .9rem;
        color: #6b7280
    }

    .shortcut-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(14,165,233,.14);
        border-color: var(--brand)
    }

/* ========== NAVBAR ANCHOR ========== */
.navbar {
    position: relative;
    z-index: 1020;
}

/* Sağ kenara yakın dropdown'ların ekran dışına taşmaması */
@media (min-width: 992px) {
    .navbar .nav-item:nth-last-child(-n+2) > .dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* ========== MEGA MENÜ (full-width) ========== */
@media (min-width: 992px) {
    .navbar .dropdown.mega {
        position: static;
    }

    /* Full-width mega panel */
    .navbar .dropdown .dropdown-mega {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        margin-top: 0;
        padding: 1rem 0;
        display: block; /* katman olarak hazırda dursun */
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .12s ease, transform .12s ease;
        background: #fff;
        border-top: 1px solid #eef2f7;
        box-shadow: 0 16px 40px rgba(0,0,0,.08);
        z-index: 1035;
    }

    .navbar .dropdown.mega:hover > .dropdown-mega,
    .navbar .dropdown.mega.show > .dropdown-mega {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    /* Mega içi grid hizalama */
    .dropdown-mega .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========== MEGA: FIRSATLAR BLOĞU ========== */
.mega-promo {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    max-width: 360px; /* taşmayı engelle */
    margin-left: auto; /* sağ sütun gibi hizala */
}

    .mega-promo h5 {
        font-size: 1rem;
        font-weight: 800;
        margin: 0 0 .5rem;
    }

    .mega-promo p {
        margin: 0 0 .5rem;
        font-size: .95rem;
        line-height: 1.4;
        overflow-wrap: anywhere; /* uzun metinler taşmasın */
    }

    .mega-promo .btn {
        white-space: nowrap;
    }

    .mega-promo .promo-img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
        margin-bottom: .75rem;
    }

/* ========== MOBILE DAVRANIŞI ========== */
@media (max-width: 991.98px) {
    /* Mega panel mobilde normal liste gibi davransın */
    .navbar .dropdown .dropdown-mega {
        position: static !important;
        left: auto;
        right: auto;
        top: auto;
        margin: .25rem 0 .5rem !important;
        padding: .5rem 0;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-top: 0;
        width: 100% !important;
    }

    .navbar .dropdown.mega.show > .dropdown-mega {
        display: block;
    }

    /* Collapse alanı kendi içinde kaydırılabilir kalsın */
    #mainNav.show {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mega menü: tam genişlik & taşma olmasın */
.navbar {
    overflow: visible;
}
    /* panel kesilmesin */
    .navbar .dropdown.mega {
        position: static;
    }
    /* Razor’da da position-static verdik */
    .navbar .dropdown .dropdown-mega {
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        margin-top: 0;
        z-index: 1030; /* menü üstte kalsın */
    }

/* Sağ promo kutusu güvenli çerçeve */
.promo-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
}

    .promo-tile .text-truncate {
        display: block;
        max-width: 100%;
    }
    .promo-tile .fw-semibold {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* İstersen iki satıra kadar: */
    .promo-tile .fw-semibold {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
    }
/* Mega dropdown tetikleyen li */
.navbar .dropdown.mega {
    position: static;
}

/* Mega panel tam genişlik */
.navbar .dropdown .dropdown-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin-top: 0;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

/* Desktop görünürlük animasyonu mevcut kurallarınla uyumlu kalsın */
@media (min-width: 992px) {
    .navbar .dropdown.mega .dropdown-mega {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .12s ease, transform .12s ease;
    }

    .navbar .dropdown.mega:hover > .dropdown-mega,
    .navbar .dropdown.mega.show > .dropdown-mega {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    /* Hover köprüsü: menü ile trigger arasında boşlukta kapanmasın */
    .navbar .dropdown.mega > .dropdown-mega::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
    }
}

/* Mobilde mega menü normal liste gibi */
@media (max-width: 991.98px) {
    .navbar .dropdown .dropdown-mega {
        position: static;
        width: 100%;
        border-top: 0;
        margin: .25rem 0 .5rem;
    }
}

/* Üst bar link aralıkları */
.top-quicklinks {
    gap: .75rem;
}
    .top-quicklinks a {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        background: #f1f5f9;
        color: #0d6efd;
        padding: .25rem .5rem;
        border-radius: 20px;
        font-size: .875rem;
        font-weight: 500;
    }

        .top-quicklinks a:hover {
            background: #e0eaff;
            text-decoration: none;
        }

/* Mobil hızlı ikonlar */
.quick-icons {
    gap: .5rem;
}

.btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-circle i {
        font-size: 1rem;
    }
/* Hamburger ile çakışmayı önle */
.navbar-toggler {
    margin-left: .5rem;
}

/* Üst bar yazılarının birleşik görünmemesi için */
.top-quicklinks a {
    white-space: nowrap;
}

.top-phone {
    font-size: 0.95rem; /* biraz büyüt */
    font-weight: 500; /* yarı kalın */
    color: #212529 !important; /* daha koyu gri/siyah */
}

    .top-phone i {
        color: #0d6efd; /* ikon mavi */
        font-size: 1rem;
        margin-right: .35rem;
    }

    .top-phone .new-code {
        color: #0d6efd; /* alan kodu mavi */
        font-weight: 600;
    }

    .top-phone .hours {
        margin-left: .5rem;
        color: #198754; /* yeşil (çalışma saatleri) */
        font-weight: 500;
    }

.secure-pay {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529; /* koyu gri */
    display: flex;
    align-items: center;
    gap: .35rem;
}

    .secure-pay i {
        color: #198754; /* güven veren yeşil ikon */
        font-size: 1rem;
    }

.phone-link {
    text-decoration: none;
    color: inherit;
}

    .phone-link:hover {
        color: #0d6efd;
    }

/* 2 satırda kırpılmış başlık (kartlarda) */
.product-card .prod-name,
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
}

/* number input oklarını gizle */
.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinners {
    -moz-appearance: textfield;
}

/* ================= LEGAL SAYFA ================= */

/* Sol menü buton stili */
.legal-menu .btn {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 500;
}

.page-support .support-menu h6 {
    padding-top: 16px;
}

.page-legal .legal-menu h6 {
    padding-top: 16px;
}

/* Sepet/Checkout üst boşluğu */
body.page-cart > main,
body.page-checkout > main {
    padding-top: calc(var(--header-h,72px) + 8px) !important;
}

/* Başlık yanına renkli, yumuşak ikon kapsülü */
.contact-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1.25rem 0 .5rem;
}

.icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f7;
    font-size: 1.1rem;
}

.icon-location {
    color: #16a34a;
    background: #e9f7ef;
}
/* yeşil */
.icon-phone {
    color: #0ea5e9;
    background: #e7f6fd;
}
/* mavi */
.icon-mail {
    color: #8b5cf6;
    background: #f1ecfe;
}
/* mor */
.icon-people {
    color: #334155;
    background: #eef2f6;
}
/* nötr */

/* Linkleri “temiz” göster, hover’da şık alt çizgi */
.link-clean a, .contact-block a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all .15s ease-in-out;
}

    .link-clean a:hover, .contact-block a:hover {
        border-bottom-color: currentColor;
        opacity: .9;
    }

/* Çip tarzı buton linkler (telefon, e-posta, WhatsApp) */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.btn-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    background: #eef2ff;
    color: #1d4ed8;
    border: 1px solid #dbe2ff;
}

    .btn-chip:hover {
        background: #e0e7ff;
    }

    .btn-chip.alt {
        background: #e8fff0;
        color: #16a34a;
        border-color: #c9f3d6;
    }
        /* WhatsApp rengi */
        .btn-chip.alt:hover {
            background: #dff9e8;
        }

/* Sosyal liste: düzenli aralık, marka renkleri */
.social-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0 0;
    display: grid;
    gap: .4rem;
}

    .social-list li a {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        font-weight: 600;
    }

    .social-list .facebook {
        color: #1877F2;
    }

    .social-list .instagram {
        color: #E4405F;
    }

    .social-list .x {
        color: #111;
    }

    .social-list .youtube {
        color: #FF0000;
    }

/* Genel tipografi dokunuşu */
.page-legal .lead {
    font-size: 1.05rem;
    color: #111827;
}

.page-legal h1 {
    margin-bottom: .25rem;
}

.page-legal .small {
    margin-bottom: 1rem;
}

/* Benzer ürünler görselini aynı ebatta göster (ratio içindeki img'yi kapla) */
.pd-related .ratio > img.img-cover {
  position: absolute; /* ratio çocuğu mutlak olmalı */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* kırp */
  object-position: center;
  border-top-left-radius: .375rem;   /* Bootstrap card radius'üne uyum */
  border-top-right-radius: .375rem;
}

/* Ürün adı: en fazla 2 satır, taşanı kes */
.pd-related .product-title-2l {
    line-height: 1.25; /* satır yüksekliği */
    min-height: calc(1.25em * 2); /* >>> en az 2 satır kadar yer tut */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* en fazla 2 satır göster */
    overflow: hidden;
}

/* Balık Av Malzemeleri ve Yemleri: vurgulu */
.main-nav > li.nav-item.nav-fishing > a.nav-link {
    color: #0d6efd; /* mavi */
    font-weight: 700;
    background: rgba(13,110,253,.08);
    border-radius: .5rem;
    padding-inline: .75rem;
}

    .main-nav > li.nav-item.nav-fishing > a.nav-link:hover {
        background: rgba(13,110,253,.12);
        color: #0b5ed7;
    }
    /* Dropdown oka da renk */
    .main-nav > li.nav-item.nav-fishing > a.nav-link.dropdown-toggle::after {
        border-top-color: #0d6efd;
    }

/* Diğer kök kategoriler: daha nötr */
.main-nav > li.nav-item:not(.nav-fishing) > a.nav-link {
    color: #6c757d; /* text-secondary */
    font-weight: 500;
}

    .main-nav > li.nav-item:not(.nav-fishing) > a.nav-link:hover {
        color: #495057;
    }

/* Ürün detay galerisi: küçük görseller taşmasın */
.pd-gallery .pd-thumbs .thumb {
    width: 80px; /* boyutu ihtiyacına göre ayarla */
    height: 80px;
    border-radius: .5rem;
    border: 1px solid #e5e7eb; /* isteğe bağlı çerçeve */
    padding: 0;
    background: #fff;
    overflow: hidden; /* >>> taşmayı keser */
}

    .pd-gallery .pd-thumbs .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* doldur-kırp; "tam sığsın" dersen contain yap */
        object-position: center;
        display: block; /* inline-gap’leri engeller */
    }

    /* Aktif küçük resim vurgusu */
    .pd-gallery .pd-thumbs .thumb.active {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
        border-color: #0d6efd33;
    }

/* === Ürün detay galerisi: thumbnails satırı === */
.pd-gallery .pd-thumbs {
    display: flex; /* tek satırda diz */
    flex-wrap: nowrap; /* alt satıra düşmesin; istersen wrap yapabilirsin */
    gap: .5rem; /* aralık */
    padding: .5rem;
    overflow-x: auto; /* çoksa yana kaydır */
}

    /* === Her bir küçük görsel === */
    .pd-gallery .pd-thumbs .thumb {
        position: relative; /* absolute varsa etkisini sıfırlar */
        flex: 0 0 auto; /* flex shrink/grow yok */
        display: inline-flex; /* içerik ortalansın */
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        margin: 0; /* olası negatif/yanlış marginleri sıfırla */
        padding: 0;
        box-sizing: border-box;
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        background: #fff;
        overflow: hidden; /* taşmayı kes */
    }

        /* Görselin kendisi: kutuyu tamamen doldursun */
        .pd-gallery .pd-thumbs .thumb img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover; /* kırp/doldur */
            object-position: center;
        }

        /* Aktif olan küçük görselin vurgusu: outline yerine box-shadow kullan (taşma efekti olmasın) */
        .pd-gallery .pd-thumbs .thumb.active {
            outline: none;
            box-shadow: 0 0 0 3px rgba(13,110,253,.5) inset, 0 0 0 1px #fff inset;
        }

        /* Eski tarayıcılar için gap fallback (opsiyonel) */
        .pd-gallery .pd-thumbs .thumb + .thumb {
            margin-left: .5rem;
        }

/* Bölümler arası zarif ayraç */
.home-section + .home-section {
    position: relative;
    padding-top: 3rem; /* üst aralık */
    margin-top: 2rem;
}

    .home-section + .home-section::before {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: min(520px, 40%);
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
    }

/* "Tümünü gör" butonu – daha belirgin, ‘pill’ stil */
.btn-view-all {
    border-radius: 9999px;
    padding: .8rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 123, 255, .16); /* Bootstrap primary gölgesi */
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn-view-all:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0, 123, 255, .22);
    }

/* Butonun üstüne ince bir ayraç (listeyle görsel bağ kurar) */
.section-cta {
    position: relative;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

    .section-cta::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 1px;
        background: rgba(0,0,0,.08);
    }

/* Koyu tema/arka planlar için çok hafif arka plan tableti (opsiyonel) */
@media (min-width: 768px) {
    .section-cta .btn-view-all {
        backdrop-filter: saturate(120%);
    }
}

/* Miktar kontrolü ortak */
.qty-control {
    display: grid;
    grid-template-columns: 42px minmax(48px,72px) 42px;
    align-items: center;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
    background: #fff;
}

    .qty-control .btn-qty {
        appearance: none;
        border: 0;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        height: 100%;
        cursor: pointer;
        outline: none
    }

        .qty-control .btn-qty.minus {
            border-right: 1px solid rgba(0,0,0,.1)
        }

        .qty-control .btn-qty.plus {
            border-left: 1px solid rgba(0,0,0,.1)
        }

    .qty-control .qty-input {
        border: 0;
        text-align: center;
        width: 100%;
        height: 100%;
        font-weight: 600;
        outline: none
    }

/* Mobil düzen: aksiyonlar tek satıra yayılıp taşma engellenir */
@media (max-width: 767.98px) {
    .cart-actions {
        justify-content: space-between;
    }

    .cart-row img {
        width: 56px;
        height: 56px;
    }

    .qty-control {
        height: 40px;
        grid-template-columns: 36px minmax(40px,56px) 36px;
    }

    .line-total {
        font-size: 1rem;
    }

    .cart-row .fw-semibold {
        word-break: break-word;
    }
    /* Uzun ürün adları taşmasın */

    .group-sep {
        padding-top: .5rem;
        padding-bottom: .25rem;
    }

    .group-title {
        font-weight: 700;
        white-space: nowrap;
    }

}

