/* ===================================
   Theme Variables - CSS Custom Properties
   Tema renk sistemi icin temel degiskenler
   =================================== */

:root {
    /* Ana Renkler */
    --theme-primary: #4a6fa5;
    --theme-primary-hover: #3d5d8a;
    --theme-secondary: #e8473f;
    --theme-accent: #ff9800;

    /* Arka Plan */
    --theme-bg: #ffffff;
    --theme-bg-alt: #f4f4f4;
    --theme-bg-dark: #1b1e2f;

    /* Metin */
    --theme-text: #333333;
    --theme-text-light: #666666;
    --theme-text-muted: #999999;

    /* Baslik */
    --theme-heading: #1b1e2f;

    /* Buton */
    --theme-btn-primary-bg: var(--theme-primary);
    --theme-btn-primary-text: #ffffff;

    /* Header/Footer */
    --theme-header-bg: #ffffff;
    --theme-header-text: #333333;
    --theme-footer-bg: #1b1e2f;
    --theme-footer-text: #cccccc;

    /* Link */
    --theme-link: var(--theme-primary);
    --theme-link-hover: var(--theme-primary-hover);

    /* Border */
    --theme-border: #eeeeee;

    /* Badge / Fiyat */
    --theme-price: var(--theme-secondary);
    --theme-sale-badge: var(--theme-secondary);
    --theme-new-badge: #28a745;

    /* Mobil Alt Bar */
    --theme-mobile-nav-bg: #ffffff;
    --theme-mobile-nav-active: var(--theme-secondary);
}

/* ===================================
   Override Kurallari
   CSS degiskenleri ile temayi saran stiller
   =================================== */

/* Body */
body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

/* Basliklar */
h1, h2, h3, h4, h5, h6,
.section-title,
.tema1-section-title,
.title {
    color: var(--theme-heading);
}

/* Linkler */
a {
    color: var(--theme-link);
}
a:hover, a:focus {
    color: var(--theme-link-hover);
}

/* Header */
.header {
    background-color: var(--theme-header-bg);
    color: var(--theme-header-text);
}

/* Footer */
.footer,
.footer.bg-dark {
    background-color: var(--theme-footer-bg) !important;
    color: var(--theme-footer-text);
}

/* Butonlar */
.btn-primary,
.btn-add-cart,
.add-to-cart-btn,
button.btn-primary {
    background-color: var(--theme-btn-primary-bg);
    border-color: var(--theme-btn-primary-bg);
    color: var(--theme-btn-primary-text);
}
.btn-primary:hover,
.btn-add-cart:hover,
.add-to-cart-btn:hover,
button.btn-primary:hover {
    background-color: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
    color: var(--theme-btn-primary-text);
}

/* Fiyat */
.product-price,
.price-box .product-price,
.new-price {
    color: var(--theme-price) !important;
}

/* Arkaplan alternatifleri */
.product-section,
.product-section1,
.bg-alt,
section[style*="background-color: #f4f4f4"],
section[style*="background-color:#f4f4f4"] {
    background-color: var(--theme-bg-alt) !important;
}

/* Standart section class alias'lari (tema-ozel prefix'li class'lar icin) */
.product-slider-section,
.tema1-product-slider-section {
    /* Renk ozellikleri theme-variables uzerinden */
}
.product-tab-section,
.tema1-product-tab-section {
    /* Renk ozellikleri theme-variables uzerinden */
}

/* Mobil Alt Nav */
.sticky-navbar,
.mobile-bottom-nav {
    background-color: var(--theme-mobile-nav-bg);
}
.sticky-navbar .nav-link.active,
.mobile-bottom-nav .nav-link.active {
    color: var(--theme-mobile-nav-active) !important;
}

/* Badge'ler */
.label-hot,
.product-label.label-hot {
    background-color: var(--theme-new-badge) !important;
}
.label-sale,
.product-label.label-sale {
    background-color: var(--theme-sale-badge) !important;
}

/* Border */
.border-color-1 {
    border-color: var(--theme-border) !important;
}

/* Underline title */
.title-underline::after {
    background-color: var(--theme-primary);
}

/* View all link rengi */
.view-all-link {
    color: var(--theme-primary) !important;
}
.view-all-link:hover {
    color: var(--theme-primary-hover) !important;
}

/* Category card heading */
.category-content .category-title {
    color: var(--theme-heading);
}

/* Text muted */
.text-muted-custom {
    color: var(--theme-text-muted);
}

/* ===================================
   Utility Classes
   Tema renkleriyle kullanilabilecek yardimci siniflar
   =================================== */

/* Text renkleri */
.text-theme-primary { color: var(--theme-primary) !important; }
.text-theme-primary-hover { color: var(--theme-primary-hover) !important; }
.text-theme-secondary { color: var(--theme-secondary) !important; }
.text-theme-accent { color: var(--theme-accent) !important; }
.text-theme-heading { color: var(--theme-heading) !important; }
.text-theme-text { color: var(--theme-text) !important; }
.text-theme-muted { color: var(--theme-text-muted) !important; }
.text-theme-light { color: var(--theme-text-light) !important; }

/* Arkaplan renkleri */
.bg-theme-primary { background-color: var(--theme-primary) !important; }
.bg-theme-secondary { background-color: var(--theme-secondary) !important; }
.bg-theme-accent { background-color: var(--theme-accent) !important; }
.bg-theme-dark { background-color: var(--theme-bg-dark) !important; }
.bg-theme-alt { background-color: var(--theme-bg-alt) !important; }
.bg-theme-footer { background-color: var(--theme-footer-bg) !important; }

/* Border renkleri */
.border-theme-primary { border-color: var(--theme-primary) !important; }
.border-theme { border-color: var(--theme-border) !important; }

/* ===================================
   Form Elementleri
   =================================== */

/* Input/Select/Textarea focus rengi */
input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb, 74,111,165), 0.15) !important;
    outline: none;
}

/* ===================================
   Tab Navigasyon
   =================================== */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}
.nav-pills .nav-link.active {
    background-color: var(--theme-primary);
    color: #fff;
}

/* ===================================
   Checkout / Sepet
   =================================== */
.checkout-btn,
.btn-checkout {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}
.checkout-btn:hover,
.btn-checkout:hover {
    background-color: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
    color: #fff;
}

/* Sepet badge */
.cart-badge,
.cart-count {
    background-color: var(--theme-secondary) !important;
}

/* Mobile nav badge (sepet/favori sayac) */
.mobile-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--theme-secondary);
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Checkout progress bar aktif adim */
.checkout-progress-bar li.active,
.checkout-progress-bar li.active a {
    color: var(--theme-primary) !important;
}
.checkout-progress-bar li a:hover {
    color: var(--theme-primary) !important;
}

/* Checkout butonlari */
.checkout-methods .btn-dark:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}
.btn-shop:hover {
    background-color: var(--theme-primary);
}

/* Cart table link rengi */
.table.table-cart .product-col .product-title a {
    color: var(--theme-primary);
}
.table.table-cart .product-col .product-title a:hover {
    color: var(--theme-primary-hover);
}
.table.table-cart .btn-remove:hover {
    color: var(--theme-primary);
}

/* ===================================
   Carousel / Owl Nav
   =================================== */
.owl-nav button:hover {
    color: var(--theme-primary) !important;
}
.owl-dots .owl-dot.active span {
    background: var(--theme-primary) !important;
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb-item.active {
    color: var(--theme-text-muted);
}
.breadcrumb-item a:hover {
    color: var(--theme-primary);
}
.breadcrumb-nav .breadcrumb a:hover {
    color: var(--theme-primary);
}

/* ===================================
   Sidebar
   =================================== */
.sidebar .widget-title,
.sidebar-widget .widget-title {
    background: var(--theme-primary);
}
.sidebar .nav-link.active,
.sidebar .list-group-item.active {
    color: var(--theme-primary);
}

/* Account sidebar aktif */
.account-sidebar .list-group-item.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ===================================
   Newsletter
   =================================== */
.newsletter-section .btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}
.newsletter-section .btn-primary:hover {
    background-color: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
}

/* ===================================
   Mega Menu
   =================================== */
.megamenu .menu-title {
    color: var(--theme-heading);
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.active > a {
    color: var(--theme-primary) !important;
}
.main-nav .menu li ul li a:hover,
.main-nav .menu li .megamenu a:hover {
    color: var(--theme-primary) !important;
}

/* ===================================
   Card / Box
   =================================== */
.product-default:hover {
    box-shadow: 0 6px 24px rgba(var(--theme-primary-rgb, 74,111,165), 0.12);
}

/* ===================================
   Pagination
   =================================== */
.pagination .page-link.active,
.pagination .page-item.active .page-link {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}
.pagination .page-link:hover {
    color: var(--theme-primary);
}

/* ===================================
   Selection
   =================================== */
::selection {
    background-color: var(--theme-primary);
    color: #fff;
}
::-moz-selection {
    background-color: var(--theme-primary);
    color: #fff;
}

/* ===================================
   Scroll To Top
   =================================== */
.scroll-to-top,
#scroll-top {
    background-color: var(--theme-primary);
}
.scroll-to-top:hover,
#scroll-top:hover {
    background-color: var(--theme-primary-hover);
}

/* ===================================
   Product Label
   =================================== */
.product-label.label-hot,
.product-default .product-label.label-hot {
    background: var(--theme-primary) !important;
}

/* ===================================
   Quick View Button
   =================================== */
.btn-quickview {
    background: var(--theme-primary) !important;
}

/* ===================================
   Admin Blok Kategori Select (tum temalarda ortak)
   =================================== */
.blok-kategori-select {
    border: 1px solid var(--theme-border);
    border-radius: 4px;
    padding: 4px 28px 4px 10px;
    font-size: 13px;
    color: var(--theme-text);
    background: #fff;
    cursor: pointer;
    min-width: 160px;
    max-width: 220px;
}
.blok-kategori-select:focus {
    border-color: var(--theme-primary);
    outline: none;
}

/* ===================================
   Clear Cart Button
   =================================== */
.btn-clear-cart {
    background: var(--theme-secondary);
    color: #fff;
    margin-top: 6px;
    font-size: 12px;
    padding: 8px;
    border-radius: 3px;
    text-align: center;
    display: block;
    text-decoration: none;
}
.btn-clear-cart:hover {
    background: var(--theme-primary-hover);
    color: #fff;
}

/* ===================================
   Admin/Dev Mode Bar
   =================================== */
.dev-mode-bar {
    background: var(--theme-secondary);
    color: #fff;
    padding: 8px 15px;
    text-align: center;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}
.dev-mode-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 15px;
}

/* ===================================
   News / Blog Badge
   =================================== */
.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--theme-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* ===================================
   Tema1 Block Ortak Stiller
   (banner-triple, category-grid, brand-slider, news-block, icon-box)
   =================================== */

/* Section baslik - border-bottom accent */
.block-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-heading);
    border-bottom: 2px solid var(--theme-primary);
}

/* Section view-all link (tum bloklar) */
.block-view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
}
.block-view-all:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}

/* Block card heading */
.block-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-heading);
}

/* Brand slider section arkaplan */
.block-brand-section {
    padding: 18px 0;
    background: var(--theme-bg-alt);
    margin: 0;
}

/* Brand text */
.block-brand-name {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-heading);
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Icon box border */
.block-icon-box {
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: #fff;
    padding: 18px 20px;
}

/* News excerpt text */
.block-news-excerpt {
    font-size: 12px;
    color: var(--theme-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   Variant Selector Border Override
   =================================== */
.variant-size:hover,
.variant-size.active,
.variant-color:hover,
.variant-color.active {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb, 74,111,165), 0.3);
}

/* ===================================
   Tema4 - News Read More
   =================================== */
.t4-news-body .news-read-more {
    color: var(--theme-primary);
}
.t4-news-body .news-read-more:hover {
    color: var(--theme-primary-hover);
}

/* Tema4 - Brand Item Hover */
.t4-brand-item:hover {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ===================================
   Header Search Border
   =================================== */
.header-search-inline .header-search-wrapper {
    border-color: var(--theme-primary);
}
.header-search-inline .btn {
    background: var(--theme-primary);
}
.header-search-inline .btn:hover {
    background: var(--theme-primary-hover);
}

/* ===================================
   Menu Depart
   =================================== */
.menu-depart > a {
    background: var(--theme-primary);
}
.menu-depart > a:hover {
    background: var(--theme-primary-hover);
}

/* ===================================
   Footer link hover
   =================================== */
.footer .links a:hover,
footer.footer .links a:hover {
    color: var(--theme-primary) !important;
}

/* ===================================
   Product Slider Tab
   =================================== */
.product-slider-tab .nav-tabs .nav-link:hover,
.product-slider-tab .nav-tabs .nav-link.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

/* ===================================
   Info Box Icon
   =================================== */
.info-boxes-slider .info-box i.text-primary {
    color: var(--theme-primary) !important;
}

/* ===================================
   Btn Icon Hover
   =================================== */
.btn-icon-group .btn-icon:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ===================================
   Checkout Submit
   =================================== */
.btn-checkout-submit {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-hover)) !important;
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb, 74,111,165), 0.3) !important;
}

/* ===================================
   Widget Column Header
   =================================== */
.tema1-widget-col .widget-col-header {
    background: var(--theme-primary);
}

/* ===================================
   Section Title Underline
   =================================== */
.tema1-section-title::before,
.tema1-banner-carousel-section .section-title::before,
.tema1-product-widget-section .section-title {
    border-bottom-color: var(--theme-primary);
}
