﻿/* publicStyles.css */
html {
    font-size: 12px; /* Tarayıcıların varsayılanı olan 16px'den bir tık daha küçük */
}
/* === GENEL DEĞİŞKENLER VE TEMEL STİLLER === */
:root {
    --dln-primary-blue: #0077b6;
    --dln-secondary-blue: #00b4d8;
    --dln-dark-blue: #03045e;
    --dln-light-blue: #ade8f4;
    --dln-text-light: #ffffff;
    --dln-text-dark: #333333;
    --dln-text-muted: #6c757d;
    --dln-border-color: #dee2e6;
}

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
   
    color: var(--dln-text-dark);
    background-color: #f8f9fa;
}

.dln-main-wrapper {
    padding-left: 6vw;
    padding-right: 6vw;
}

a {
    text-decoration: none;
    color: var(--dln-primary-blue);
}

    a:hover {
        color: var(--dln-dark-blue);
    }

/* === HEADER BÖLÜMÜ === */
.dln-header.sticky-top {
    z-index: 1030;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.dln-top-bar {
    background-color: var(--dln-light-blue);
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--dln-border-color);
}

    .dln-top-bar a {
        color: var(--dln-dark-blue);
        margin-right: 15px;
        transition: color 0.2s ease;
    }

    .dln-top-bar .dln-user-actions a,
    .dln-top-bar .dln-user-actions .dropdown-toggle {
        color: var(--dln-dark-blue);
    }


    .dln-top-bar a:hover {
        color: var(--dln-primary-blue);
    }

    .dln-top-bar i {
        margin-right: 5px;
    }

.dln-separator {
    color: var(--dln-text-muted);
    margin: 0 5px;
}

.dln-main-header {
    padding: 1.5rem 0;
}

.dln-logo-area {
    display: flex;
    align-items: center;
}

    .dln-logo-area img {
        max-height: 50px;
        margin-right: 15px;
    }

.dln-company-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dln-dark-blue);
    letter-spacing: 0.5px;
}

.dln-header-icon {
    display: flex;
    align-items: center;
    color: var(--dln-text-dark);
    margin-left: 20px;
    position: relative;
}

    .dln-header-icon i {
        font-size: 1.5rem;
        color: var(--dln-text-muted);
    }

    .dln-header-icon span {
        margin-left: 8px;
        font-size: 0.9rem;
    }

    .dln-header-icon .badge {
        position: absolute;
        top: -5px;
        right: -10px;
    }

/* === ANA MENÜ BARI === */
.dln-menu-bar {
    background-color: var(--dln-dark-blue);
    padding: 0;
}

.dln-category-dropdown .btn {
    background-color: var(--dln-primary-blue);
    color: var(--dln-text-light);
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

    .dln-category-dropdown .btn:hover {
        background-color: var(--dln-secondary-blue);
    }

.dln-category-dropdown .dropdown-menu {
    border-radius: 0;
    border: none;
    margin-top: 0;
}

.dln-main-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .dln-main-nav li a {
        color: var(--dln-text-light);
        padding: 1rem 1.2rem;
        display: block;
        font-size: 1rem;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }

        .dln-main-nav li a:hover {
            background-color: var(--dln-primary-blue);
        }

/* 3'LÜ MENÜ BARI STİLLERİ */
.dln-menu-bar .d-flex {
    justify-content: flex-start;
}

.dln-menu-center {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.dln-menu-right {
    display: flex;
    align-items: center;
    color: var(--dln-text-light);
    margin-left: auto;
}

    .dln-menu-right i {
        color: #ffc107;
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .dln-menu-right p {
        margin-bottom: 0;
        font-size: 0.9rem;
        color: #ffc107;
        font-weight: 500;
    }

        .dln-menu-right p span {
            font-weight: 700;
            color: #ffffff;
        }

/* === FOOTER BÖLÜMÜ === */
.dln-footer {
    background-color: #eaf4f4;
    color: var(--dln-text-dark);
    padding: 4rem 0 1rem 0;
    border-top: 5px solid var(--dln-secondary-blue);
}

    .dln-footer .dln-logo-area {
        margin-bottom: 1rem;
    }

.dln-footer-about {
    color: var(--dln-text-muted);
    font-size: 0.9rem;
}

.dln-footer h5 {
    color: var(--dln-primary-blue);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.dln-footer .list-unstyled li {
    margin-bottom: 0.7rem;
}

.dln-footer .list-unstyled a {
    color: var(--dln-text-muted);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

    .dln-footer .list-unstyled a:hover {
        color: var(--dln-primary-blue);
        padding-left: 5px;
    }

.dln-social-icons {
    display: flex;
    padding: 0;
    margin-top: 1.5rem;
}

    .dln-social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--dln-primary-blue);
        color: var(--dln-text-light);
        border-radius: 50%;
        margin-right: 10px;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

        .dln-social-icons a:hover {
            background-color: var(--dln-dark-blue);
            transform: translateY(-3px);
        }


.dln-footer-bottom {
    border-top: 1px solid var(--dln-border-color);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--dln-text-muted);
}

/* ================================================= */
/* === BİLEŞEN VE ÖZEL ALAN STİLLERİ             === */
/* ================================================= */

/* Dil menüsündeki bayraklar */
.dln-flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* Kategori menüsü genel yapısı */
#category-dropdown-menu .list-unstyled {
    margin: 0;
    padding-left: 0;
}

.main-category {
    font-weight: 600;
    color: var(--dln-dark-blue) !important;
}

/* Alt kategoriler için sizin özel isteğiniz */
#category-dropdown-menu .sub-category {
    text-transform: capitalize !important;
    color: cornflowerblue !important;
}

.sub-category:hover {
    background-color: #f0f0f0;
}


/* Font Awesome akordiyon ikonları için stiller */
.dln-accordion-icon {
    font-size: 1.1em;
    margin-top: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .dln-accordion-icon.fa-square-plus {
        color: #198754;
    }

    .dln-accordion-icon.fa-square-minus {
        color: #dc3545;
        transform: rotate(180deg);
    }

/* Ürün kartı için basit bir stil */
.product-card {
    transition: box-shadow 0.3s ease-in-out;
}

    .product-card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .product-card .card-footer {
        background-color: white;
        border-top: none;
    }

/* Kategori menüsü için "görünmez" kaydırma çubuğu */
#category-dropdown-menu {
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

    #category-dropdown-menu::-webkit-scrollbar {
        width: 8px;
        background-color: transparent;
    }

    #category-dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    #category-dropdown-menu::-webkit-scrollbar-thumb {
        background-color: transparent;
        border-radius: 4px;
    }

    #category-dropdown-menu:hover::-webkit-scrollbar-thumb {
        background-color: #ccc;
    }
/* for arabic */
/* ============================================= */
/* === RTL (SAĞDAN SOLA) UYUMLULUK STİLLERİ   === */
/* ============================================= */
[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .dln-menu-center {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

[dir="rtl"] .dln-menu-right {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .dln-main-nav {
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .dln-header-icon {
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .dln-social-icons a {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .dln-flag-icon {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .dln-top-bar a {
    margin-left: 15px;
    margin-right: 0;
}

/* ============================================= */
/* === ANA SAYFA ÜRÜN KUTUSU STİLLERİ         === */
/* ============================================= */

/* Slider boşluğu için basit bir stil */
.slider-placeholder {
    height: 400px; /* Tahmini yükseklik */
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ced4da;
    border-radius: .375rem;
}

/* Ürün kartı ana stili */
.product-card {
    border: none;
    /* İsteğiniz üzerine mavimsi gölge */
    box-shadow: 0 4px 15px rgba(3, 4, 94, 0.1); /* --dln-dark-blue renginin şeffaf hali */
    transition: all 0.3s ease-in-out; /* Atraksiyon için yumuşak geçiş */
}

    /* Üzerine gelince olacak "Atraksiyon" */
    .product-card:hover {
        transform: translateY(-8px); /* Kutuyu hafifçe yukarı kaldırır */
        box-shadow: 0 8px 25px rgba(3, 4, 94, 0.15); /* Gölgeyi daha belirgin yapar */
    }

    .product-card .card-footer {
        background-color: transparent;
        border-top: none;
    }
/* ============================================= */
/* === DİNAMİK GRİD İÇİN SIKIŞTIRILMIŞ SATIR   === */
/* ============================================= */

/* Ana sayfadaki ürün satırını her zaman dar ve sağa yaslı yapar */
#product-grid-container {
    width: 75%;
    margin-left: auto;
    margin-right: 0;
}

/* ============================================= */
/* === YENİ ÜRÜN KARTI STİLLERİ                === */
/* ============================================= */

.product-card .product-media {
    position: relative;
    overflow: hidden;
}

/* Resim üzerine gelen Hızlı Bakış ve Beğen ikonları */
.product-action-vertical {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0; /* Normalde görünmez */
    transform: translateX(20px); /* Sağdan gelecek */
    transition: all 0.3s ease;
}

.product-card:hover .product-action-vertical {
    opacity: 1; /* Üzerine gelince görünür */
    transform: translateX(0);
}

.btn-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: var(--dln-text-dark);
    border-radius: 50%;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

    .btn-product-icon:hover {
        background-color: var(--dln-primary-blue);
        color: #fff;
    }

.product-card .card-body {
    text-align: center;
    padding: 1rem;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--dln-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    height: 48px; /* İki satır için sabit yükseklik */
    overflow: hidden;
}

    .product-title a {
        color: var(--dln-text-dark);
    }

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dln-primary-blue);
    margin-bottom: 0.5rem;
}

/* Yıldız Puanlama Stilleri */
.ratings-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.ratings {
    position: relative;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

    .ratings::before {
        content: "\f005 \f005 \f005 \f005 \f005"; /* 5 boş yıldız */
    }

.ratings-val {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffc107; /* Dolu yıldız rengi */
}

    .ratings-val::before {
        content: "\f005 \f005 \f005 \f005 \f005"; /* 5 dolu yıldız */
    }

.ratings-text {
    font-size: 0.8rem;
    margin-left: 8px;
    color: var(--dln-text-muted);
}

/* Stok Durumu Stilleri */
.stock-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

    .stock-status.in-stock {
        color: #198754; /* Yeşil */
    }

    .stock-status.out-of-stock {
        color: #dc3545; /* Kırmızı */
    }
 
/* ================================================= */
/* === ANA SAYFA İÇERİK HİZALAMA STİLLERİ         === */
/* ================================================= */
/* ============================================= */
/* === YENİ ÜRÜN KARTI STİLLERİ (GÜNCELLENDİ) === */
/* ============================================= */

/* ============================================= */
/* === YENİ ÜRÜN KARTI STİLLERİ (NİHAİ HIZALAMA) === */
/* ============================================= */

/* Ana kartı dikey bir flex container yapıyoruz. h-100 ile birleşince harikalar yaratır. */
.product-card {
    border: none;
    box-shadow: 0 4px 15px rgba(3, 4, 94, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex; /* Dikey hizalama için */
    flex-direction: column; /* İçerik alt alta dizilecek */
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(3, 4, 94, 0.15);
    }

    .product-card .product-media { /* Resim alanı */
        position: relative;
        overflow: hidden;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
    }

        .product-card .product-media img { /* Resmin kendisi */
            max-height: 100%;
            max-width: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

    /* Kartın gövdesi, mevcut boşluğu dolduracak şekilde esneyecek. */
    .product-card .card-body {
        text-align: center;
        padding: 1rem;
        flex-grow: 1; /* Bu sihirli komut, footer'ı en alta iter. */
    }

.product-brand {
    font-size: 0.8rem;
    color: var(--dln-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0; /* Boşluk SIFIRLANDI */
    /* DÜZELTME: Sabit yükseklik kaldırıldı! */
    overflow: hidden;
}

    .product-title a {
        color: var(--dln-text-dark);
    }

.product-category {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.price-container, .tax-info {
    /* Bu elemanlar flex-grow sayesinde en alttaki footer'a yakın olmayacak, body içinde kalacak */
}

.original-price {
    font-size: 0.9rem;
    color: var(--dln-primary-blue);
    margin-right: 8px;
    font-weight: 500;
}

.try-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dln-primary-blue);
}

.tax-info {
    font-size: 0.7rem;
    color: #aaa;
}
 
/* Kategori menüsü açıkken hem slider'a hem de ürün satırına
   uygulanacak olan daraltma ve sağa yaslama kuralı. */
#slider-row.row-is-compressed,
#product-grid-container.row-is-compressed {
    width: 75%;
    margin-left: auto;
    margin-right: 0;
    transition: width 0.4s ease-in-out;
}
/* Kur göstergesi için ek stiller */
.dln-menu-right .currency-rate {
    font-weight: 600;
    color: #ffffff;
    margin-left: 10px;
}

/* ============================================= */
/* === ANA SAYFA SLIDER STİLLERİ (GARANTİ)    === */
/* ============================================= */

#slider-row {
    margin-bottom: 2rem;
}

#main-slider.carousel {
    height: 400px;
    border-radius: .375rem;
    overflow: hidden;
    background-color: #fff; /* Resimlerin arkasında beyaz fon olsun */
}

#main-slider .carousel-item {
    height: 100%;
    width: 100%;
}

    /* RESMİN KENDİSİ İÇİN NİHAİ KURAL */
    #main-slider .carousel-item img {
        height: 100% !important;
        width: 100% !important;
        /* Resmi, oranını bozmadan kutuya sığdırır */
        object-fit: contain !important;
    }

/* Yazı için stil */
#main-slider .carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}