/* Genel gövde ve container */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ———— HEADER (Minimal & Şık) ———— */

.site-header {
    background: #111;          /* 3. seçenek için #222 yapabilirsin */
    color: #fff;
    padding: 22px 0 18px;
    text-align: center;
    /* 2. seçenek (premium) için aşağıdaki satırı aktif et:
       box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    */
    border-bottom: 2px solid #000;
}

.site-header-link {
    text-decoration: none;
    color: #fff;
    display: inline-block;
}

.site-header-link h1,
.site-header-link p {
    margin: 0;
}

.site-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-header p {
    margin-top: 5px;
    font-size: 15px;
    opacity: 0.8;
}

/* Başlık linki mavi/altı çizgili olmasın */
.site-header a,
.site-header a:link,
.site-header a:visited {
    color: #fff;
    text-decoration: none;
}

.site-header a:hover {
    color: #f1f1f1;
    text-decoration: none;
}

/* ———— ARAMA & FİLTRE BÖLÜMÜ ———— */

.search-section {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0 15px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form input[type="text"],
.filter-form select {
    flex: 1;
    min-width: 180px;
    padding: 8px;
}

.filter-form button {
    padding: 8px 16px;
    cursor: pointer;
}

/* Kategori butonları (arama altındaki pill'ler) */
.category-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
}

.category-pill:hover {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

/* ———— ÜRÜN LİSTESİ ———— */

.product-list-section {
    padding: 20px 0 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image a {
    display: block;
}

.no-image {
    font-size: 13px;
    color: #777;
}

.product-info {
    padding: 12px 14px 14px;
}

.product-info h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-title-link:hover {
    text-decoration: underline;
}

/* Ürün meta bilgileri (marka, model vs.) */
.product-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
    color: #555;
}

.product-meta li {
    margin-bottom: 2px;
}

/* Fiyat */
.product-price {
    font-weight: 600;
    font-size: 18px;
    margin: 6px 0;
    color: #d32f2f;
}

/* Kısa açıklama */
.product-desc {
    font-size: 13px;
    color: #444;
    margin: 4px 0 8px;
}

/* Ürün kartı altındaki iletişim alanı */
.product-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    margin-top: 6px;
    font-size: 13px;
}

/* Açıklama satırı her zaman üstte */
.product-contact > span {
    flex: 0 0 100%;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Genel buton stili */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

/* Telefon butonu */
.btn-phone {
    background: #1976d2;
    color: #fff;
}

.btn-phone:hover {
    background: #115293;
}

/* WhatsApp butonu */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn i {
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
}

/* ———— ADMIN GENEL ———— */

.admin-body {
    background: #f0f2f5;
}

.admin-header {
    background: #222;
    color: #fff;
    padding: 10px 0;
}

.admin-header h1 {
    margin: 0;
    font-size: 20px;
}

.admin-header nav {
    margin-top: 6px;
}

.admin-header nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    font-size: 13px;
}

.admin-header nav a:hover {
    text-decoration: underline;
}

.admin-main {
    padding: 20px 0 40px;
}

.admin-section {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.admin-section h2 {
    margin-top: 0;
}

/* Admin ürün formu */
.product-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.product-form input,
.product-form textarea,
.product-form select {
    width: 100%;
    padding: 6px;
    margin-top: 2px;
    box-sizing: border-box;
}

.product-form button {
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
}

/* Admin tablo */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
}

.admin-table th {
    background: #f5f5f5;
}

/* ———— ADMIN LOGIN ———— */

.admin-login-wrapper {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-login-wrapper h1 {
    margin-top: 0;
    text-align: center;
}

.admin-login-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.admin-login-form input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.admin-login-form button {
    width: 100%;
    padding: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.alert {
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 13px;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #b71c1c;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #42a5f5;
    color: #0d47a1;
}

/* ———— ÜRÜN DETAY SAYFASI ———— */

.product-detail {
    padding: 20px 0 40px;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: #1976d2;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

.product-detail-gallery {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
}

.product-detail-main-image {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    margin-bottom: 10px;
}

.product-detail-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-detail-thumbs .thumb-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid transparent;
}

.product-detail-thumbs .thumb-image:hover {
    border-color: #444;
}

.product-detail-info {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 15px;
}

.product-detail-info h1 {
    margin-top: 0;
    font-size: 22px;
}

.detail-meta {
    margin-bottom: 10px;
}

.detail-price {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-detail-desc h2,
.product-detail-contact h2 {
    margin-bottom: 6px;
    margin-top: 14px;
    font-size: 16px;
}

.product-detail-desc p {
    font-size: 14px;
    line-height: 1.5;
}

.product-detail-contact .product-contact {
    margin-top: 6px;
    gap: 10px;
}

.product-detail-contact .product-contact a {
    display: inline-block;
}
