/* wwwroot/css/site.css */
:root {
    --primary-color: #1979c3;
    --btn-bg: #1979c3;
    --btn-hover: #006bb4;
    --topbar-bg: #f8f8f8;
    --header-bg: #ffffff;
    --menu-bg: #f0f0f0;
    --menu-text: #575757;
    --text-color: #333333;
    --border-color: #cccccc;
}

body { font-family: 'Open Sans', sans-serif; color: var(--text-color); font-size: 13px; }
a { text-decoration: none; color: var(--primary-color); transition: 0.2s; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }

/* TOP BAR */
.panel-wrapper {
    background-color: #105e5e; /* Senin istediğin renk */
    color: #ffffff;            /* Yazılar beyaz olsun ki okunsun */
    font-size: 12px;
    border-bottom: 1px solid #0d4d4d; /* Altına hafif koyu bir çizgi */
    padding: 5px 0;
}

/* Panel içindeki linkler */
.panel-wrapper a {
    color: #ffffff !important; /* Linkleri zorla beyaz yap */
    text-decoration: none;
    margin-left: 10px;
}

.panel-wrapper a:hover {
    color: #e0e0e0 !important; /* Üzerine gelince hafif grileşsin */
    text-decoration: underline;
}

/* Kapsayıcı hizalaması */
.panel-container {
    max-width: 1200px; /* Container genişliğiyle uyumlu olsun */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Kapsayıcı hizalaması */
.panel-container {
    max-width: 1200px; /* Container genişliğiyle uyumlu olsun */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.top-links { display: flex; gap: 15px; }
.top-links a { color: #666; }

/* HEADER */
.header-content { padding: 25px 0; background-color: var(--header-bg); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo img { max-width: 170px; }

/* Search Bar */
.block-search { flex-grow: 1; max-width: 600px; margin: 0 40px; position: relative; }
.search-input { width: 100%; height: 40px; border: 1px solid #c2c2c2; padding: 0 10px; font-size: 13px; border-radius: 0; }
.search-input:focus { outline: none; border-color: var(--primary-color); }
.action.search { position: absolute; right: 0; top: 0; height: 40px; width: 40px; background: none; border: none; color: #757575; font-size: 16px; }

/* Mini Cart */
.minicart-wrapper a { display: flex; align-items: center; color: #333; font-weight: 600; font-size: 13px; }
.minicart-icon { font-size: 24px; color: #757575; margin-right: 5px; }
.counter.qty { background: #ff5501; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 2px; margin-left: 5px; }

/* NAVIGATION */
.nav-sections { background-color: var(--menu-bg); border-bottom: 1px solid #ddd; }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.navigation { display: flex; justify-content: space-between; }
.ui-menu { display: flex; flex-wrap: wrap; }
.ui-menu li a { display: block; padding: 12px 15px; color: var(--menu-text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ui-menu li a:hover { background-color: #fff; color: var(--primary-color); text-decoration: none; }
.wholesaler-link a { color: #d9534f !important; }

/* MAIN CONTENT */
.main-container { max-width: 1280px; margin: 0 auto; padding: 20px; }


/* PRODUCT GRID */
.block-title { border-bottom: 1px solid #e1e1e1; margin-bottom: 20px; text-align: center; position: relative; height: 20px; }
.block-title strong { background: #fff; padding: 0 20px; font-size: 22px; font-weight: 300; text-transform: uppercase; color: #333; }
.product-item { padding: 10px; margin-bottom: 20px; }
.product-item-info { text-align: center; padding: 15px; border: 1px solid transparent; transition: 0.3s; height: 100%; position: relative; }
.product-item-info:hover { border-color: #e1e1e1; box-shadow: 0 0 15px rgba(0,0,0,0.1); z-index: 9; background: #fff; }
.product-image-container img { max-width: 100%; height: auto; margin-bottom: 15px; }
.product-item-name { font-weight: 600; font-size: 14px; margin: 10px 0; display: block; min-height: 40px; }
.product-item-name a { color: #333; }
.price-box { margin: 15px 0; color: #333; font-weight: 700; font-size: 18px; }
.action.tocart { background: var(--btn-bg); border: 1px solid var(--btn-bg); color: #fff; padding: 8px 20px; font-size: 13px; font-weight: 700; text-transform: uppercase; width: 100%; cursor: pointer; transition: 0.2s; }
.action.tocart:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

/* FOOTER */
.page-footer { background-color: #f4f4f4; border-top: 1px solid #ccc; padding: 40px 0; margin-top: 50px; }
.footer-content { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 15px; color: #333; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #666; font-size: 13px; }
.footer-bottom { background-color: #333; color: #fff; text-align: center; padding: 15px 0; margin-top: 20px; font-size: 12px; }
.newsletter-input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #ccc; margin-bottom: 10px; }

/* CART PAGE STYLES */
.cart-summary {
    background: #f5f5f5; /* Hafif gri arka plan */
    border: 1px solid #e1e1e1;
}

.cart-summary .title {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.cart-totals .mark {
    font-weight: 600;
    color: #575757;
}

.cart-totals .grand .mark,
.cart-totals .grand .amount {
    font-weight: 700;
}

.btn-primary.checkout {
    background-color: #1979c3; /* Magento mavisi */
    border-color: #1979c3;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-primary.checkout:hover {
    background-color: #006bb4;
    border-color: #006bb4;
}

/* Tablo düzenlemeleri */
#shopping-cart-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #333;
}

.cart.item .product-item-name a {
    font-weight: 600;
    color: #006bb4;
    text-decoration: none;
}

.cart.item .product-item-name a:hover {
    text-decoration: underline;
}

/* SEPET TABLOSU TEMİZLİĞİ */
.cart-items thead th {
    background-color: transparent; /* Gri arka planı kaldır */
    border-top: none; /* En üstteki çizgiyi kaldır */
    border-bottom: 1px solid #ccc; /* Sadece alt çizgi kalsın */
    padding-bottom: 15px;
}

.cart-items tbody td {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Ürünler arası hafif çizgi */
}

/* --- NAVBAR ÖZEL TASARIM (#105e5e) --- */

/* 1. Navbar'ın altına ince çizgi ekle */
.nav-sections {
    border-bottom: 3px solid #105e5e !important; /* İnce çizgi */
}

/* 2. Linklerin üzerine gelince (Hover) ve Açıkken (Active) */
.navigation .ui-menu li a:hover,
.navigation .ui-menu li.dropdown .dropdown-toggle.show {
    background-color: #105e5e !important; /* Arka plan koyu turkuaz */
    color: #ffffff !important;           /* Yazı Rengi BEYAZ */
    border-radius: 4px;                  /* Hafif yuvarlak köşe (şık durur) */
    transition: all 0.3s ease;           /* Yumuşak geçiş efekti */
}

/* 3. Dropdown menü elemanlarının üzerine gelince */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #105e5e !important; /* Arka plan koyu turkuaz */
    color: #ffffff !important;           /* Yazı Rengi BEYAZ */
}

/* Ufak bir ayar: Linklerin iç boşluğunu düzenleyelim ki boya taşmasın */
.navigation .ui-menu li a {
    padding: 8px 15px !important; /* Kutunun içine biraz boşluk */
    display: inline-block;
}

/* --- SEPETE EKLE BUTONLARI (KESİN ÇÖZÜM) --- */

/* 1. Tüm olası buton sınıflarını hedefliyoruz */
.btn-primary,                    /* Bootstrap Butonları */
.action.primary,                 /* Standart Action Butonları */
.action.tocart,                  /* Sepete Ekle Butonları */
button.action.tocart.primary,    /* Spesifik Sepet Butonu */
.product-item-actions .action.tocart { /* Liste içindeki sepet butonu */
    background-color: #105e5e !important; 
    border-color: #105e5e !important;
    color: #ffffff !important;
    background-image: none !important; /* Eğer gradient varsa kaldırır */
}

/* 2. Mouse ile üzerine gelince (Hover) ve Tıklama (Active/Focus) */
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.action.primary:hover, .action.primary:focus, .action.primary:active,
.action.tocart:hover, .action.tocart:focus,
button.action.tocart.primary:hover {
    background-color: #0d4d4d !important; /* #105e5e'nin bir tık koyusu */
    border-color: #0d4d4d !important;
    color: #ffffff !important;
}