﻿/*
 * Deniz Servan E-Ticaret Sitesi Ana Stil Dosyası
 * Renk Paleti ve Header Yapısı Güncellendi
 */

.whatsapp-fab {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* WhatsApp Yeşili */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .whatsapp-fab:hover {
        color: #FFF;
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }

.welcome-script {
    font-family: 'Alex Brush', cursive;
    font-size: 72px;
    color: #b37a53; /* Görseldeki kahverengiye yakın */
    font-weight: normal;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}



@media (max-width: 768px) {
    .welcome-script {
        font-size: 48px;
    }
}

/* === RENK PALETİ VE GENEL AYARLAR === */
:root {
    --ds-primary: #005a87; /* Logodan gelen koyu mavi */
    --ds-secondary: #28c4d8; /* Logodan gelen teal/açık mavi */
    --ds-dark: #212529;
    --ds-light: #f8f9fa;
    --ds-text: #333;
    --ds-text-light: #555;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: var(--ds-text);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--ds-dark);
}

a {
    text-decoration: none;
    color: var(--ds-primary);
}

    a:hover {
        color: var(--ds-secondary);
    }

.btn-primary {
    background-color: var(--ds-primary);
    border-color: var(--ds-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #003e5c; /* Koyu ton */
        border-color: #003e5c;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.btn-outline-dark {
    transition: all 0.3s ease;
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}

    .btn-outline-dark:hover {
        background-color: var(--ds-primary);
        color: #fff;
    }


/* === HEADER (ÜST MENÜ) - Logo Sola Taşmış Plaket === */
.ds-header {
    /* Header'a gölgeyi buradan verelim */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .ds-header .navbar {
        padding-top: 1.5rem; /* Logoya yer açmak için artırıldı */
        padding-bottom: 1.0rem;
    }

/* Logo Plaketi (Sol) */
.ds-logo-wrapper-left {
    position: absolute;
    left: 14.5rem; /* Konteynerın solundan başla */
    top: 0.5rem; /* Header'ın üstünden 0.5rem (8px) aşağıda */
    background: #fff;
    border-radius: 1.5rem; /* Oval kenarlar */
    padding: 0.5rem 1rem; /* Logonun etrafında beyaz boşluk */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Plaket gölgesi */
    z-index: 100; /* Menülerin üzerinde kalması için */
    transition: all 0.3s ease;
}

.ds-logo {
    height: 110px; /* Logo boyutu ayarlandı */
    width: auto;
    transition: transform 0.3s ease;
}

.ds-logo-wrapper-left:hover {
    transform: scale(1.03); /* Hafif büyüme efekti */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* Menü Linkleri (Yeni) */
.ds-header .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ds-dark); /* Renk koyulaştırıldı */
    transition: color 0.3s ease;
}

    .ds-header .nav-link:hover,
    .ds-header .nav-link.active {
        color: var(--ds-primary); /* Ana renk */
    }

.ds-header .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem; /* Menüden biraz aşağıda açılsın */
}

.ds-header .dropdown-item {
    font-weight: 500;
    transition: all 0.2s ease;
}

    .ds-header .dropdown-item:hover {
        color: var(--ds-primary);
        background-color: #f0f0f0;
    }

/* İkonlar (Yeni) */
.ds-icon-links .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem 0.75rem; /* Padding ayarlandı */
    color: var(--ds-text-light); /* İkon rengi */
}

    .ds-icon-links .nav-link:hover {
        color: var(--ds-secondary); /* İkon hover rengi */
    }
    /* İkon boyutlarını büyüt */
    .ds-icon-links .nav-link i {
        font-size: 1.4rem;
    }


.ds-cart-badge {
    position: absolute;
    top: 6px;
    right: -4px;
    font-size: 0.7rem;
    padding: 4px 7px;
    background-color: var(--ds-primary);
    border: 2px solid #fff;
}

/* Menüye Hakkımızda'dan sonra boşluk eklendi (3. eleman) */
.ds-header .navbar-nav li.nav-item:nth-child(3)::after { /* 2'den 3'e güncellendi */
   
    display: inline-block;
    width: 12px;
}


/* Header'ın ortalanmış yapısı (Masaüstü) */
@media (min-width: 992px) {

    /* Ana menü bloğuna logoyu ittirmek için margin ver */
    .ds-header .navbar-collapse {
        margin-left: 285px; /* Logo genişliği + boşluk */
    }

    .ds-header .navbar-nav .nav-item {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .ds-icon-links .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Mobil görünüm ayarları */
@media (max-width: 991.98px) {

    .ds-header .navbar {
        padding-top: 6.5rem; /* Mobil için logoya yer aç */
    }

    /* Logoyu mobil için ortala ve ayarla */
    .ds-logo-wrapper-left {
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
        padding: 0.5rem;
    }

    .ds-logo {
        height: 90px; /* Mobil için logo boyutu */
    }

    /* Mobil menü açma butonu */
    .ds-header .navbar-toggler {
        position: absolute;
        top: 2rem;
        right: 1rem;
        z-index: 99;
    }

    .ds-header .navbar-collapse {
        margin-top: 1rem;
        text-align: center;
    }

    .ds-icon-links {
        justify-content: center;
        margin-top: 1rem;
        padding-bottom: 1rem;
    }
}


/* === ANA SAYFA - HERO (Renk Güncellendi) === */
.ds-hero-section {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 90, 135, 0.7), rgba(0, 90, 135, 0.7)), url('https://placehold.co/1920x800/454545/FFFFFF?text=Motosiklet+veya+Anı+Görseli');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ds-hero-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 0.5rem;
}

.ds-hero-section .btn-light {
    font-weight: 600;
    color: var(--ds-primary);
}


/* === ANA SAYFA - KATEGORİ KARTLARI === */
.ds-category-card {
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
}

    .ds-category-card img {
        transition: transform 0.4s ease;
    }

    .ds-category-card:hover {
        box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.1);
    }

        .ds-category-card:hover img {
            transform: scale(1.1);
        }

    .ds-category-card .card-img-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    }

    .ds-category-card .card-title {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
        color: #fff;
    }


/* === ANA SAYFA - ÜRÜN KARTLARI === */
.ds-product-card {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

    .ds-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
        border-color: #ddd;
    }

    .ds-product-card .card-img-top {
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .ds-product-card .card-title {
        font-size: 0.92rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 48px;
        color: var(--ds-text);
    }

    .ds-product-card .card-text {
        font-size: 0.85rem;
    }

    .ds-product-card .ds-price {
        color: var(--ds-primary);
    }


/* === FOOTER (ALT BÖLÜM) - Renk Güncellendi === */
.ds-footer {
    background: linear-gradient(180deg, var(--ds-primary) 0%, #004666 100%);
    color: #fff;
}

.ds-footer-logo {
    height: 50px;
    /* Koyu mavi arka planda logonun görünmesi için beyaz filtre */
    filter: brightness(0) invert(1);
}

.ds-footer h6 {
    color: #fff;
    font-weight: 700;
}

.ds-footer a, .ds-footer .text-reset {
    color: #d9e6ec !important; /* text-reset'i ezmek için !important */
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.ds-footer p {
    color: #d9e6ec !important;
}

.ds-footer a:hover {
    color: #fff !important;
    padding-left: 5px;
}

.ds-social-icons .btn-outline-light {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border-color: #cfe3eb;
}

    .ds-social-icons .btn-outline-light:hover {
        background-color: #fff;
        color: var(--ds-primary);
    }

.ds-footer-bottom {
    border-color: rgba(255,255,255,0.2) !important;
}

.ds-payment-icons i {
    color: #e0e0e0;
}




/* === ÜRÜNLER MEGA MENÜ === */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}


/* === ÜRÜNLER dropdown hem hover hem click’te aynı açılsın === */
.nav-item.dropdown .dropdown-menu.ds-megamenu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    top: 80% !important;
}

/* Bootstrap’ın default "sol hizalı" davranışı iptal ediliyor */
.nav-item.dropdown.show .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
}



/* === Mobilde mega menü normal hizaya dönsün === */
@media (max-width: 991px) {
    .ds-megamenu {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        top: auto !important;
        position: relative !important;
        padding: 1.5rem 1rem;
    }
}

.ds-megamenu {
    position: absolute;
    width: 80%;
    left: 50%;
    top: 80%; /* 80% yerine daha doğru hizalama */
    transform: translateX(-50%);
    border: none;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 2rem 3rem;
    z-index: 999; /* Üstte kalması için */
}

    .ds-megamenu .row > div {
        margin-bottom: 1rem;
    }


    .ds-megamenu h6 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--ds-primary);
    }


    .ds-megamenu a.dropdown-item {
        padding: 0.25rem 0;
        font-size: 0.95rem;
        color: var(--ds-text);
    }


        .ds-megamenu a.dropdown-item:hover {
            color: var(--ds-primary);
            background: none;
            padding-left: 5px;
        }


/* --- GENEL LAYOUT TEMİZLİĞİ --- */
.ds-checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #b0b0b0;
}

    .ds-checkout-steps .step.active {
        color: #003b63;
    }

    .ds-checkout-steps .step.completed {
        color: #28a745;
    }

.ds-checkout-steps .step-icon {
    background: #003b63;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ds-checkout-steps .step-divider {
    flex-grow: 1;
    height: 2px;
    background: #dcdcdc;
    margin: 0 12px;
}

/* --- ADRES KARTLARI --- */
.address-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 14px;
    transition: .2s;
    cursor: pointer;
    background: white;
}

    .address-card:hover {
        border-color: #003b63;
        background: #f6fbff;
    }

    .address-card.active {
        border-color: #003b63;
        background: #f1f8ff;
    }

/* --- SİPARİŞ ÖZETİ PANELİ --- */
.ds-basket-summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

    /* --- ÜRÜN LİSTESİ (SİPARİŞ ÖZETİ YAN TARAF) --- */
    .ds-basket-summary .product-img {
        width: 65px;
        height: 65px;
        border-radius: 8px;
        object-fit: cover;
    }
.ds-basket-summary {
    position: sticky;
    top: 120px;
}

#productSidebar {
    position: sticky;
    top: 120px; /* Header yüksekliğine göre ayarlanmış */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
}

