/* --- Kompakt Filtre --- */
.osb-filter-compact {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 30px;
}

.osb-filter-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

.osb-filter-group {
    flex: 1;
    min-width: 200px;
}

.osb-search-group {
    display: flex;
    flex: 2;
    align-items: stretch;
}

/* Tema stillerini kullanması için gereksiz özellikleri kaldırdık. */
.osb-filter-compact input[type="text"] {
    width: 100%;
}

.osb-btn-search {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #333;
    margin-left: -50px;
    z-index: 2;
}

.osb-filter-compact select {
    width: 100%;
}

.osb-btn-filter {
    background: #7aa83d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    height: 100%;
}

/* --- Liste Tasarımı (Yatay) --- */
.osb-list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.osb-list-card {
    display: flex;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    position: relative;
    transition: box-shadow 0.2s;
    align-items: center;
}

.osb-list-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-color: #ddd;
}

.osb-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.osb-card-left {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.osb-card-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.osb-no-logo {
    font-size: 40px;
    color: #ccc;
}

.osb-card-right {
    flex: 1;
    min-width: 0;
    /* Taşmayı önlemek için */
}

.osb-card-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #003366;
    font-weight: 700;
    word-wrap: break-word;
}

.osb-card-title a {
    text-decoration: none;
    color: inherit;
}

.osb-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.osb-meta-row {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
    gap: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.osb-meta-row .dashicons {
    color: #003366;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobil Responsive - Logo üstte, bilgiler altta */
@media (max-width: 768px) {
    .osb-list-card {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .osb-card-left {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .osb-card-right {
        width: 100%;
    }

    .osb-card-title {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 12px;
    }

    .osb-meta-row {
        font-size: 0.9rem;
    }
}

/* --- Detay ve Profil Sayfaları için Eski CSS'lerin Korunması --- */
.osb-company-detail,
.osb-profile-wrapper {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.osb-header {
    background: #f4f6f8;
    padding: 30px;
    text-align: center;
}

.osb-detail-logo {
    max-height: 100px;
    margin-bottom: 15px;
}

.osb-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.osb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.osb-product-card {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}

.osb-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.osb-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
}

.osb-form input,
.osb-form textarea,
.osb-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.osb-media-uploader {
    display: flex;
    gap: 10px;
}

button.osb-upload-btn {
    width: auto !important;
}

/* --- Detay Sayfası Yeni Layout --- */
.osb-detail-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
}

.osb-detail-sidebar {
    flex: 0 0 300px;
    /* Genişlik sabit */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.osb-detail-content {
    flex: 1;
    min-width: 0;
}

/* Sol Sidebar Stilleri */
.osb-detail-logo-wrapper {
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.osb-detail-logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.osb-no-logo-detail {
    font-size: 80px;
    color: #eee;
}

.osb-detail-contact h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #7aa83d;
    display: inline-block;
    padding-bottom: 5px;
}

.osb-detail-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.osb-detail-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
    align-items: flex-start;
    line-height: 1.5;
}

.osb-detail-contact li:last-child {
    margin-bottom: 0;
}

.osb-detail-contact li .dashicons {
    color: #7aa83d;
    margin-top: 2px;
    flex-shrink: 0;
}

.osb-detail-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.osb-detail-contact a:hover {
    color: #7aa83d;
}

/* Sağ İçerik Stilleri (Hakkında) */
.osb-about-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.osb-company-title {
    margin-top: 0;
    color: #222;
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.osb-company-desc {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* Ürünler Bölümü */
.osb-products-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.osb-products-section h3 {
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    color: #222;
    padding-left: 15px;
    border-left: 5px solid #7aa83d;
}

.osb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
}

.osb-product-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.osb-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #7aa83d;
}

.osb-prod-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    margin: -15px -15px 15px -15px;
    /* Resmi kartın kenarlarına yaymak için */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    padding: 10px;
}

.osb-prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.osb-product-card:hover .osb-prod-img-wrap img {
    transform: scale(1.05);
    /* Zoom efekti */
}

.osb-prod-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.osb-prod-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .osb-detail-container {
        flex-direction: column;
    }

    .osb-detail-sidebar {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }
}

/* --- Firma Profili Düzenleme (Yeni Tasarım) --- */
:root {
    --osb-primary: #4f46e5;
    --osb-primary-hover: #4338ca;
    --osb-danger: #ef4444;
    --osb-text: #1f2937;
    --osb-label: #4b5563;
    --osb-bg: #f3f4f6;
    --osb-card-bg: #ffffff;
    --osb-border: #d1d5db;
    --osb-input-bg: #f9fafb;
    --osb-success: #10b981;
}

.osb-profile-container {

    background-color: var(--osb-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    color: var(--osb-text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.osb-header {
    background-color: var(--osb-card-bg);
    padding: 30px 40px;
    border-bottom: 1px solid #e5e7eb;
}

.osb-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--osb-text);
    margin: 0;
}

.osb-form-content {
    padding: 40px;
}

.osb-form-section {
    margin-bottom: 40px;
}

.osb-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--osb-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--osb-bg);
}

.osb-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.osb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.osb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--osb-label);
}

.osb-profile-container input[type="text"],
.osb-profile-container input[type="email"],
.osb-profile-container select,
.osb-profile-container textarea {
    width: 100%;
    /* Tema stilleri geçerli olsun diye özel stiller kaldırıldı */
}

/* Sadece focus efekti eklenebilir veya o da kaldırılabilir */
.osb-profile-container input:focus,
.osb-profile-container select:focus,
.osb-profile-container textarea:focus {
    /* Tema focus'u geçerli olsun */
}

.osb-profile-container textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Input Group (Resim Seçimi İçin) --- */
.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex-grow: 1;
}

.osb-btn-secondary {
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.osb-btn-secondary:hover {
    /* Tema hover */
}

.preview-img {
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--osb-border);
}

/* --- Ürün Kartları --- */
.osb-product-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.2s;
}

.osb-product-card:hover {
    border-color: #d1d5db;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.osb-btn-delete {
    background-color: transparent !important;
    color: var(--osb-danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.2s;
    width: auto !important;
}

.osb-btn-delete:hover {
    background-color: var(--osb-danger) !important;
    color: white !important;
}

.osb-btn-add-product {
    background-color: var(--osb-success) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
}

.osb-btn-add-product:hover {
    background-color: #059669 !important;
}

/* --- Alt Bar ve Kaydet Butonu --- */
.osb-form-footer {
    background-color: #f9fafb;
    padding: 20px 40px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.osb-btn-submit {
    background: linear-gradient(135deg, var(--osb-primary), #6366f1) !important;
    color: white !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.osb-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .osb-form-row {
        grid-template-columns: 1fr;
    }

    .osb-header,
    .osb-form-content,
    .osb-form-footer {
        padding: 20px;
    }
}

/* --- Sayfalama (Pagination) --- */
.osb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.osb-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.osb-page-link:hover {
    background: #7aa83d;
    color: #fff;
    border-color: #7aa83d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(122, 168, 61, 0.2);
}

.osb-page-link.osb-page-active {
    background: #7aa83d;
    color: #fff;
    border-color: #7aa83d;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(122, 168, 61, 0.3);
}

.osb-page-link.osb-prev,
.osb-page-link.osb-next {
    padding: 0 16px;
    font-weight: 600;
}

.osb-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999;
    font-weight: 700;
}

@media (max-width: 600px) {
    .osb-pagination {
        gap: 5px;
    }

    .osb-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .osb-page-link.osb-prev,
    .osb-page-link.osb-next {
        padding: 0 12px;
    }
}