﻿﻿ 
/* 1) Navbar'ı her şeyin ÜSTÜNDE ve SABİT yap */
header, .navbar {
    position: fixed; /* sticky yerine fixed */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999; /* EN ÜSTTE TUT */
    min-height: var(--navbar-h);
    background: #fff; /* transparan ise içerik görünmesin */
}



/* 1. Temel font ayarı */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.main-slider {
    cursor: pointer;
}

@media (max-width: 576px) {
    .navbar-nav {
        margin-left: 30px !important;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* 3. Body ayarları */
body {
    margin: 0;
    padding-top:120px; /* header yüksekliğinize göre ayarlayın (ör. 56px veya 70px) */
    margin-bottom: 60px; /* Footer için alt boşluk */
}

/* 4. Form ve buton focus gölgesi */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Placeholder hizalama */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NAVBAR ve MENÜ */
.navbar-brand img {
    transition: transform 0.3s;
}

    .navbar-brand img:hover {
        transform: scale(1.05) rotate(-2deg);
    }

.nav-link {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #333 !important;
    transition: color 0.3s;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background-color: #A52A2A;
        transition: width 0.3s;
    }

    .nav-link:hover {
        color: #A52A2A !important;
    }

        .nav-link:hover::after {
            width: 100%;
        }

.navbar-nav .nav-link img {
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.navbar-nav .nav-link:hover img {
    filter: none;
    transform: scale(1.1);
}

/* Dropdown menü animasyonları ve delay */
.dropdown-menu {
    display: none;
    opacity: 0;
    transform: scaleY(0.8);
    transform-origin: top center;
}

    .dropdown.show > .dropdown-menu, .dropdown-menu.show {
        display: block !important;
        animation: dropdownFadeIn 0.25s ease-out forwards;
    }

@keyframes dropdownFadeIn {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-item {
    opacity: 0;
    animation: navFadeIn 0.4s ease forwards;
}

    .navbar-nav .nav-item:nth-child(1) {
        animation-delay: 0.2s;
    }

    .navbar-nav .nav-item:nth-child(2) {
        animation-delay: 0.3s;
    }

    .navbar-nav .nav-item:nth-child(3) {
        animation-delay: 0.4s;
    }

.dropdown-menu .dropdown-item {
    opacity: 0;
    animation: navFadeIn 0.3s ease forwards;
}

.dropdown-menu.show .dropdown-item:nth-child(1) {
    animation-delay: 0.15s;
}

.dropdown-menu.show .dropdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

/* ----------------------------------------------------------------------------Ürün kartları ve butonları */
.item-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

    .item-buttons button {
        width: 100%;
        max-width: 200px;
        padding: 10px 0;
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: background-color 0.2s, transform 0.1s;
    }

    .item-buttons .btn-clean {
        background-color: #b39b4c;
        color: #fff;
    }

        .item-buttons .btn-clean:hover {
            background-color: #a18b45;
            transform: translateY(-2px);
        }

    .item-buttons .btn-cart {
        background-color: #b32a2a;
        color: #fff;
    }

        .item-buttons .btn-cart:hover {
            background-color: #912020;
            transform: translateY(-2px);
        }

.badge {
    font-weight: bold;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
    min-height: 50px;
    gap: 0;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 44px;
    background: none;
    border-radius: 6px;
    border: none !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
    font-weight: bold;
    box-shadow: none !important;
}

    .footer-btn:focus {
        outline: none;
        box-shadow: none !important;
    }

    .footer-btn:hover {
        background: #f8f8f8;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    .footer-btn img {
        height: 30px !important;
        width: auto;
        object-fit: contain;
        display: inline-block;
    }

.item-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*//-------------------------------------------------*/

.footer .flex-column.gap-1 span {
    line-height: 1.35;
}

.footer .row.gx-2.gy-0 > [class^="col-"] {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
}

.footer .row.gx-2.gy-0 {
    margin: 0 !important;
    row-gap: 0 !important;
}

.footer .d-flex.flex-row.gap-3 {
    justify-content: center !important;
}

.footer .footer-divider {
    border-top: 1.5px solid #444;
    margin: 5px 0;
    width: 100%;
    padding: 0;
}

.tooltip-inner {
    background-color: #f2f2f2 !important;
    color: #222 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: none;
    font-weight: bold;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    background-color: #f2f2f2 !important;
    border: none;
}

.container.my-5, .container.my-4, .container.my-3 {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.main-slider {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}


/* Mobil (≤576px) için footer düzeltmeleri */
@media (max-width: 576px) {
    /* 1) Sağda oluşan beyaz boşluğu gizle */
    html, body {
        overflow-x: hidden !important;
    }

    .navbar-toggler {
        margin-right: 15px !important;
    }

    /* 2) Footer’ın üst boşluğunu azalt, alt boşluğunu koru/ayarla */
    .footer {
        padding-top: 0.5rem !important; /* eskiden py-3 ise py-2’ye düşürür */
        padding-bottom: 1rem !important;
    }

        /* 3) Telif ve küçük metinler arası boşluğu ferahlat */
        .footer .small {
            display: block;
            margin: 0.25rem 0 !important;
            line-height: 1.6 !important;
        }

        /* 4) İletişim satırları (row.gx-2.gy-0) arası mesafe */
        .footer .row.gx-2.gy-0 {
            row-gap: 0.5rem !important;
        }

            .footer .row.gx-2.gy-0 > [class^="col-"] {
                line-height: 1.6 !important;
            }
}
