/* İsrafresh - Ana Site CSS */

/* Genel Stiller */
:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    top: 0px !important;
}

@media (max-width: 991.98px) {
    body {
        /* padding-top: 100px !important; */
    }
}

/* .main-header'ın top değeri, .topbar'ın yüksekliği kadar olmalı */
.main-header {
    margin-top: 44px; /* Topbar yüksekliği kadar boşluk bırak */
    margin-bottom: 24px;
    top: 0;
}
body:not(.has-topbar) .main-header {
    top: 0;
}

/* Topbar Stilleri */
.topbar {
    width: 100%;
    z-index: 1050;
    min-height: 44px; /* Topbar yüksekliği */
}

.topbar-nav .list-inline-item {
    margin-right: 1.5rem;
}

.topbar-nav .list-inline-item:last-child {
    margin-right: 0;
}

.topbar a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.language-selector .dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.language-selector .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: inherit;
}

.language-selector .dropdown-menu {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
}

.language-selector .dropdown-item {
    color: #333;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid #ddd;
}

/* Bayrak stilleri */
.flag-tr {
    background: linear-gradient(to bottom, #e30a17 50%, #ffffff 50%);
    position: relative;
}

.flag-tr::before {
    content: "★";
    position: absolute;
    top: 2px;
    left: 2px;
    color: #ffffff;
    font-size: 8px;
}

.flag-en {
    background: linear-gradient(to right, #012169 0%, #012169 25%, #ffffff 25%, #ffffff 50%, #c8102e 50%, #c8102e 75%, #ffffff 75%, #ffffff 100%);
}

.flag-de {
    background: linear-gradient(to bottom, #000000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%);
}

.topbar-info {
    color: rgba(255, 255, 255, 0.8);
}

/* Admin ayarlarından gelen renklere öncelik ver */
.topbar[style*="color"] .topbar-info {
    color: inherit !important;
    opacity: 0.9;
}

/* Header Stilleri */
.main-header {
    top: 0;
    margin-bottom: 24px; /* Header'dan sonra boşluk bırak */
}

/* Topbar yoksa header en üstte */
body:not(.has-topbar) .main-header {
    top: 0;
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(32, 201, 151, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.15), rgba(32, 201, 151, 0.15));
    border: 2px solid var(--primary-color);
}

/* Kategori menü öğeleri için özel stiller */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link i {
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Anasayfa menü öğesi için özel stil */
.navbar-nav .nav-link[href="index.php"] {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white !important;
    border: none;
}

.navbar-nav .nav-link[href="index.php"]:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Kategori menü öğeleri için renkli ikonlar - Topbar ile aynı renkler */
.navbar-nav .nav-link[href*="category.php"]:nth-child(2) i {
    color: #74b9ff;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(3) i {
    color: #fdcb6e;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(4) i {
    color: #fd79a8;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(5) i {
    color: #a29bfe;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(6) i {
    color: #55a3ff;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(7) i {
    color: #00b894;
}

.navbar-nav .nav-link[href*="category.php"]:nth-child(8) i {
    color: #e17055;
}

/* kategori.php için menü stilleri */
.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav .nav-item {
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.main-nav .nav-item:hover::before {
    left: 100%;
}

.main-nav .nav-item:hover {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(32, 201, 151, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
    color: var(--primary-color);
}

.main-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.15), rgba(32, 201, 151, 0.15));
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.main-nav .nav-item i {
    transition: transform 0.3s ease;
}

.main-nav .nav-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* kategori.php için anasayfa menü öğesi */
.main-nav .nav-item[href="index.php"] {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white !important;
    border: none;
}

.main-nav .nav-item[href="index.php"]:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* kategori.php için renkli ikonlar - Topbar ile aynı renkler */
.main-nav .nav-item[href*="kategori.php"]:nth-child(2) i {
    color: #74b9ff;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(3) i {
    color: #fdcb6e;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(4) i {
    color: #fd79a8;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(5) i {
    color: #a29bfe;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(6) i {
    color: #55a3ff;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(7) i {
    color: #00b894;
}

.main-nav .nav-item[href*="kategori.php"]:nth-child(8) i {
    color: #e17055;
}

/* Topbar Menü Stilleri - Modern Minimal Tasarım */
.topbar-nav {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
}

.topbar-nav .list-inline-item {
    margin: 0 0.2rem;
    padding: 0;
    position: relative;
}

.topbar-link {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    color: inherit;
    background: none;
    border: none;
    padding: 0 0.2rem;
    transition: none;
    display: inline;
    box-shadow: none;
    letter-spacing: 0;
}

.topbar-link:hover,
.topbar-link:focus {
    color: inherit;
    background: none;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.topbar-link i {
    display: none;
}

.topbar-nav .list-inline-item:not(:last-child)::after {
    content: '|';
    color: #fff;
    opacity: 0.5;
    margin-left: 0.4rem;
    margin-right: 0.1rem;
    font-weight: 400;
    font-size: 1em;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Topbar responsive */
@media (max-width: 768px) {
    .main-header {
        margin-top: 0 !important;
        margin-bottom: 12px;
    }
    .navbar {
        padding: 0.5rem 0.5rem !important;
    }
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.7rem 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .navbar-collapse {
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
        margin-top: 0.5rem;
        width: 100%;
    }
    .navbar-toggler {
        margin-right: 0;
        border: none;
        box-shadow: none;
    }
    .navbar-brand {
        font-size: 1.1rem !important;
        max-width: 70vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar {
        padding: 0.3rem 0 !important;
    }
    .topbar-left, .topbar-right {
        text-align: center;
        justify-content: center !important;
    }
    .topbar-nav .list-inline-item {
        display: inline-block !important;
        margin: 0 0.3rem !important;
    }
    .topbar-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    #google_translate_element {
        margin-top: 0.5rem;
    }
}

/* Pill style kaldırıldı - sadece düz yazı */

/* Hero Slider Stilleri */
.hero-slider {
    margin-top: 120px;
}

/* Topbar yoksa slider daha az margin */
body:not(.has-topbar) .hero-slider {
    margin-top: 76px; /* Sadece Header yüksekliği */
}

.hero-slide {
    height: 500px;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    padding-left: 0;
}

.hero-content-card {
    max-width: 500px;
    margin-left: 0;
    text-align: left;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 0;
}

.hero-image {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero-image img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(25,135,84,0.07);
}

.object-cover {
    object-fit: cover;
}

.carousel-indicators {
    bottom: 20px;
    z-index: 10;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary-color);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Bölüm Başlıkları */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Kategori Kartları */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    color: var(--primary-color);
}

/* Ürün Kartları */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Galeri Stilleri */
.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* İletişim CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), #20c997);
}

/* Footer Stilleri */
footer {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

/* Footer'da yazı renkleri artık koyu olsun */
footer {
    color: #2d5a2d !important;
}

footer h5,
footer h6 {
    color: #198754 !important;
}

footer .text-muted {
    color: #6c757d !important;
}

footer a {
    color: #2d5a2d !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #198754 !important;
}



/* Footer hr için stil */
footer hr {
    border-color: rgba(25, 135, 84, 0.3) !important;
    opacity: 0.6;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Tasarım */
@media (max-width: 576px) {
    .hero-slide, .hero-content-wrapper, .hero-image {
        height: 220px;
        min-height: 120px;
    }
    .hero-content-card {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero-content {
        padding: 2rem !important;
    }
    
    .hero-image {
        min-height: 200px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Buton Stilleri */
.btn-success {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #157347;
    border-color: #157347;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Kart Hover Efektleri */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Loading Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #157347;
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* Form Stilleri */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* Alert Stilleri */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Modal Stilleri */
.modal-header {
    border-bottom: 2px solid var(--primary-color);
}

.modal-footer {
    border-top: 2px solid var(--primary-color);
}

/* Breadcrumb Stilleri */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Pagination Stilleri */
.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    color: #157347;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Kategori Sayfaları */
.category-hero {
    padding: 60px 0;
    margin-top: 140px; /* Topbar + Header yüksekliği için daha fazla boşluk */
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

body:not(.has-topbar) .category-hero {
    margin-top: 90px; /* Sadece Header yüksekliği için */
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #198754;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

.category-image img {
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.2);
}

.subcategory-card .card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.subcategory-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.subcategory-card .card-img-top-wrapper {
    height: 250px;
    overflow: hidden;
}

.subcategory-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-card .card:hover .card-img-top {
    transform: scale(1.05);
}

.subcategory-card .card-img-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card .card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-img-placeholder {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: #198754;
}

.breadcrumb-item a {
    color: #198754;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #146c43;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}



/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .carousel-controls {
        display: none !important;
    }
    
    body {
        margin: 0;
        padding: 20px;
    }
}

/* Google Translate widget için özel stil */
#google_translate_element {
    min-width: 90px;
    max-width: 140px;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    border-radius: 6px;
    font-size: 0.95em;
    z-index: 1100;
}
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0.95em !important;
    color: #fff !important;
}
.goog-te-combo {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.95em;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
} 