/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* =========================
   ArabamJet HEADER
========================= */

.aj-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 15px;
}

/* =========================
   TOP BAR
========================= */

.aj-topbar{
    background:#f4f4f4;
    border-bottom:1px solid #e5e5e5;
    font-size:14px;
}

.aj-topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:36px;
    gap:20px;
}

.aj-topbar-nav{
    flex:1;
    display:flex;
    justify-content:center;
}

.aj-topbar-menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    list-style:none;
    margin:0;
    padding:0;
}

.aj-topbar-menu li{
    margin:0;
    padding:0;
}

.aj-topbar-menu a{
    text-decoration:none;
    color:#333;
}

/* =========================
   MAIN HEADER
========================= */

.aj-main-header{
    background:#fff;
    border-bottom:1px solid #eee;
}

.aj-main-header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:80px;
    gap:20px;
}

.aj-header-left{
    flex:0 0 auto;
}

.aj-logo{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.aj-logo img{
    height:40px;
    display:block;
}

.aj-header-center{
    flex:1 1 auto;
    min-width:0;
    padding:0 30px;
}

/* =========================
   KEYWORD SEARCH
========================= */

.aj-header-search-wrap{
    position:relative;
    width:100%;
    max-width:720px;
}

.aj-header-search{
    width:100%;
    margin:0;
}

.aj-header-search-input-wrap{
    display:grid;
    grid-template-columns:minmax(0,1fr) 58px;
    align-items:stretch;
    width:100%;
    background:#fff;
    border:2px solid #e5e5e5;
    border-radius:10px;
    overflow:hidden;
}

.aj-header-keyword{
    display:block;
    width:100%;
    min-width:0;
    height:54px;
    border:none !important;
    outline:none !important;
    box-shadow:none !important;
    margin:0;
    padding:0 16px !important;
    font-size:18px;
    color:#111;
    background:#fff;
}

.aj-header-keyword::placeholder{
    color:#888;
}

.aj-header-search-submit{
    width:58px;
    min-width:58px;
    height:54px;
    border:none;
    margin:0;
    padding:0;
    background:#e40046;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.aj-header-search-submit:hover{
    background:#c9003d;
}

.aj-header-search-submit svg{
    width:20px;
    height:20px;
    display:block;
}

.aj-header-search-dropdown{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #e5e5e5;
    border-top:none;
    box-shadow:0 10px 28px rgba(0,0,0,0.10);
    z-index:9999;
}

.aj-search-dropdown-section{
    padding:18px 20px;
    border-bottom:1px solid #eee;
}

.aj-search-dropdown-section:last-child{
    border-bottom:none;
}

.aj-search-dropdown-title{
    font-size:16px;
    font-weight:700;
    color:#111;
    margin-bottom:12px;
}

.aj-search-dropdown-items{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.aj-search-dropdown-item{
    display:block;
    text-decoration:none;
    color:#222;
    font-size:15px;
    line-height:1.45;
}

.aj-search-dropdown-item:hover{
    color:#e40046;
}

.aj-search-dropdown-more{
    display:inline-block;
    margin-top:12px;
    text-decoration:none;
    color:#e40046;
    font-weight:600;
    font-size:15px;
}

/* =========================
   RIGHT AREA
========================= */

.aj-header-right{
    display:flex;
    align-items:center;
    gap:0;
    margin-left:auto;
    flex:0 0 auto;
}

.aj-header-right a{
    text-decoration:none !important;
}

.aj-header-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    width:52px;
    height:52px;
    color:#111;
    border-left:1px solid #eee;
}

.aj-header-icon:last-of-type{
    border-right:1px solid #eee;
}

.aj-header-icon svg{
    width:20px;
    height:20px;
    display:block;
}

.aj-message-badge{
    position:absolute;
    top:8px;
    right:8px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    font-size:11px;
    font-weight:700;
    line-height:18px;
    text-align:center;
}

.aj-messages{
    position:relative;
}

.aj-message-icon-wrap{
    position:relative;
    display:inline-block;
    line-height:0;
}

.aj-message-badges{
    position:absolute;
    top:0;
    right:0;
    pointer-events:none;
}

.aj-message-badge--messages{
    top:-6px;
    right:-12px;
    z-index:2;
    background:#dc2626;
}

.aj-message-badge--price-drop{
    top:10px;
    right:-12px;
    z-index:1;
    background:#ff7a00;
}

#aj-price-toast{
    position:fixed;
    top:70px;
    right:20px;
    z-index:9999;
    background:#ff9800;
    color:#fff;
    padding:12px 18px;
    border-radius:8px;
    font-size:14px;
    display:none;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

body.admin-bar #aj-price-toast{
    top:100px;
}

body:not(.admin-bar) #aj-price-toast{
    top:70px;
}

/* =========================
   AUTH / ACCOUNT
========================= */

.aj-auth-links{
    display:flex;
    align-items:center;
}

.aj-login-link{
    display:flex;
    align-items:center;
    height:52px;
    padding:0 22px;
    background:#f3f3f3;
    color:#111;
    font-size:16px;
    font-weight:500;
    border-left:1px solid #e5e5e5;
    white-space:nowrap;
}

.aj-account-menu{
    position:relative;
}

.aj-account-toggle{
    display:flex;
    align-items:center;
    height:52px;
    padding:0 20px;
    background:#f3f3f3;
    color:#1f2d3d !important;
    text-decoration:none !important;
    font-size:15px;
    font-weight:600;
    border-left:1px solid #e5e5e5;
    white-space:nowrap;
    transition:background .2s ease;
}

.aj-account-toggle:hover{
    background:#ececec;
}

.aj-account-toggle::after{
    content:"▼";
    font-size:10px;
    margin-left:10px;
    color:#666;
}

.aj-account-dropdown{
    position:absolute;
    top:100%;
    left:0;
    min-width:260px;
    background:#fff;
    border-top:3px solid #c8102e;
    box-shadow:0 10px 30px rgba(0,0,0,0.14);
    display:none;
    z-index:9999;
    padding:10px 0;
}

.aj-account-menu:hover .aj-account-dropdown{
    display:block;
}

.aj-user-menu-list,
.aj-user-menu-list ul,
.aj-user-menu-list li{
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}

.aj-user-menu-list > li > a{
    display:block;
    padding:11px 22px;
    color:#243447 !important;
    text-decoration:none !important;
    font-size:15px;
    line-height:1.4;
    background:#fff;
    transition:background .2s ease,color .2s ease;
}

.aj-user-menu-list > li > a:hover{
    background:#f7f7f7;
    color:#000 !important;
}

.aj-user-menu-list .menu-item{
    border:0 !important;
}

.aj-user-menu-list .sub-menu{
    display:none !important;
}

/* =========================
   LISTING MENU
========================= */

.aj-listing-menu{
    position:relative;
}

.aj-listing-toggle{
    display:flex;
    align-items:center;
    height:52px;
    padding:0 24px;
    background:#e0b400;
    color:#111;
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
    position:relative;
}

.aj-listing-toggle::after{
    content:"▼";
    font-size:11px;
    margin-left:12px;
}

.aj-listing-dropdown{
    position:absolute;
    top:100%;
    right:0;
    width:610px;
    background:#fff;
    border-top:3px solid #d90429;
    box-shadow:0 10px 28px rgba(0,0,0,0.16);
    padding:22px;
    display:none;
    z-index:9999;
}

.aj-listing-menu:hover .aj-listing-dropdown{
    display:block;
}

.aj-listing-dropdown-inner{
    display:flex;
    gap:20px;
}

.aj-listing-box{
    flex:1;
    text-decoration:none;
    color:#111;
    min-height:250px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:28px 24px 0;
}

.aj-listing-box strong{
    display:block;
    font-size:20px;
    line-height:1.3;
    margin-bottom:14px;
}

.aj-listing-box span{
    display:block;
    font-size:16px;
    line-height:1.7;
    color:#222;
    margin-bottom:22px;
}

.aj-listing-box::after{
    display:block;
    text-align:center;
    font-size:18px;
    font-weight:700;
    padding:16px 10px;
    margin:0 -24px;
}

.aj-listing-box-free{
    background:#f7f0c8;
}

.aj-listing-box-free::after{
    content:"Ücretsiz İlan Ver";
    background:#efc92d;
}

.aj-listing-box-value{
    background:#dcecf7;
}

.aj-listing-box-value::after{
    content:"Jet Sat";
    background:#3792d0;
    color:#fff;
}

/* =========================
   DETAIL PAGE SMALL ITEM
========================= */

.aj-ilan-no{
    font-size:14px;
    color:#666;
    margin-top:6px;
}

.aj-ilan-no strong{
    color:#111;
    font-weight:700;
}

@media (max-width:1024px){

    .aj-filters{
        position:static !important;
        top:auto !important;
        z-index:auto;
        background:transparent;
        overflow:visible;
        max-height:none;
    }

    .aj-selected-filters{
        position:sticky !important;
        top:calc(var(--wp-admin--admin-bar--height, 0px) + 80px) !important;
        z-index:9999 !important;
        background:#fff;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1100px){

    .aj-main-header-inner{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        justify-content:space-between;
        min-height:auto;
        gap:12px;
        padding:12px 0;
    }

    .aj-header-left{
        flex:0 0 auto;
    }

    .aj-header-right{
        flex:0 0 auto;
        margin-left:0;
    }

    .aj-header-center{
        order:3;
        flex:0 0 100%;
        width:100%;
        padding:0;
    }

    .aj-header-search-wrap{
        max-width:none;
    }
}

@media (max-width:640px){

    .aj-topbar-inner{
        min-height:auto;
        padding:8px 0;
    }

    .aj-topbar-nav{
        width:100%;
        display:flex;
        justify-content:center;
        overflow-x:auto;
    }

    .aj-topbar-menu{
        display:flex;
        justify-content:center;
        gap:18px;
        padding:0 10px;
        flex-wrap:nowrap;
        white-space:nowrap;
    }

    .aj-main-header-inner{
        gap:10px;
    }

    .aj-header-left,
    .aj-header-right{
        flex:0 0 100%;
    }

    .aj-header-right{
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .aj-header-search-input-wrap{
        grid-template-columns:minmax(0,1fr) 52px;
    }

    .aj-header-keyword{
        height:48px;
        font-size:16px;
        padding:0 14px !important;
    }

    .aj-header-search-submit{
        width:52px;
        min-width:52px;
        height:48px;
    }

    .aj-search-dropdown-section{
        padding:14px;
    }

    .aj-listing-dropdown,
    .aj-account-dropdown{
        right:auto;
        left:0;
        width:min(100%, 420px);
    }
}

/* ArabamJet edit kilitli alan görünümü */

.aj-form input[disabled],
.aj-form select[disabled],
.aj-form textarea[disabled] {

    background: #f5f5f5;
    color: #888;
    border-color: #e0e0e0;
    cursor: not-allowed;

}

/* readonly alanlar için */

.aj-form input[readonly],
.aj-form select[readonly],
.aj-form textarea[readonly] {

    background: #f7f7f7;
    color: #999;
}
/*test*/

.aj-home-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

@media (max-width: 1200px) {
.aj-home-grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 768px) {
.aj-home-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 480px) {
.aj-home-grid {
grid-template-columns: repeat(1, 1fr);
}
}

.aj-card-image img {
width: 100%;
height: 220px;
object-fit: cover;
border-radius: 12px;
}

.aj-card-image {
position: relative;
}

.aj-card-badges {
position: absolute;
top: 10px;
left: 10px;
min-height:24px;
z-index:2;
display:flex;
gap:6px;
flex-wrap:wrap;
}

.aj-badge {
color: white;
font-size:10px;
padding:2px 6px;
border-radius:4px;
font-weight: 600;
line-height:1.2;
}

.aj-badge-favorite{
background:#57606f;
}

.aj-badge-favorite-count{
background:rgba(0,0,0,0.55);
color:#fff;
backdrop-filter:blur(2px);
}

.aj-badge-price-drop{
background:#ffa502;

}

.aj-store-page {
padding: 24px 0 36px;
}

.aj-store-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

.aj-store-hero {
background: #fff;
border: 1px solid #ececec;
border-radius: 16px;
overflow: hidden;
margin-bottom: 24px;
}

.aj-store-cover {
width: 100%;
height: 220px;
background-color: #e8edf2;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
overflow: hidden;
position: relative;
isolation: isolate;
z-index: 0;
}

.aj-store-cover::before {
content: "";
position: absolute;
inset: 0;
background-image: inherit;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: blur(14px);
transform: scale(1.08);
opacity: 0.45;
z-index: -1;
}

.aj-store-head {
padding: 18px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px 16px;
align-items: start;
}

.aj-store-head-main {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
grid-column: 1;
}

.aj-store-head-actions {
display: flex;
align-items: flex-start;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
grid-column: 2;
max-width: 360px;
}

.aj-store-logo {
width: 84px;
height: 84px;
border-radius: 14px;
object-fit: cover;
border: 1px solid #e5e7eb;
background: #fff;
padding: 6px;
}

.aj-store-title {
margin: 0;
font-size: 28px;
line-height: 1.2;
}

.aj-store-meta {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 8px;
font-size: 14px;
color: #374151;
}

.aj-store-description {
margin: 10px 0 0;
font-size: 14px;
line-height: 1.55;
color: #374151;
max-width: 780px;
}

.aj-store-favorite-form {
margin: 0;
}

.aj-store-favorite-btn {
border: none;
border-radius: 8px;
background: #111;
color: #fff;
font-weight: 700;
font-size: 13px;
line-height: 1.25;
padding: 8px 12px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
white-space: nowrap;
}

.aj-store-favorite-btn.is-active {
background: #4b5563;
}

.aj-store-message-details {
margin: 0;
}

.aj-store-message-details summary {
list-style: none;
display: inline-flex;
}

.aj-store-message-details summary::-webkit-details-marker {
display: none;
}

.aj-store-message-form {
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 8px;
width: min(360px, calc(100vw - 72px));
padding: 10px;
border: 1px solid #e5e7eb;
border-radius: 10px;
background: #fff;
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.aj-store-message-form textarea {
width: 100%;
min-height: 96px;
padding: 10px;
border: 1px solid #d1d5db;
border-radius: 10px;
resize: vertical;
font: inherit;
}

.aj-store-login-link {
color: #1d4ed8;
font-size: 13px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 12px;
border: 1px solid #cbd5e1;
border-radius: 8px;
background: #fff;
}

.aj-store-notice {
padding: 10px 12px;
border: 1px solid #86efac;
border-radius: 8px;
background: #dcfce7;
color: #166534;
font-size: 14px;
font-weight: 600;
grid-column: 1 / -1;
}

.aj-store-listings-title {
margin: 0 0 14px;
font-size: 22px;
}

.aj-store-empty {
margin: 0;
padding: 16px;
border: 1px dashed #cbd5e1;
border-radius: 10px;
background: #f8fafc;
}

.aj-store-pagination ul {
display: flex;
gap: 8px;
list-style: none;
margin: 20px 0 0;
padding: 0;
flex-wrap: wrap;
}

.aj-store-pagination a,
.aj-store-pagination span {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 38px;
height: 38px;
padding: 0 10px;
border: 1px solid #e5e7eb;
border-radius: 8px;
text-decoration: none;
color: #111;
font-weight: 600;
}

.aj-store-pagination .current {
background: #111;
color: #fff;
border-color: #111;
}

@media (max-width: 768px) {
.aj-store-cover {
width: 100%;
height: 160px;
}

.aj-store-head {
grid-template-columns: 1fr;
}

.aj-store-head-main {
align-items: flex-start;
grid-column: 1;
}

.aj-store-head-actions {
grid-column: 1;
justify-content: flex-start;
max-width: 100%;
}

.aj-store-title {
font-size: 22px;
}

.aj-store-meta {
flex-direction: column;
gap: 6px;
}
}

.aj-badge-new{
background:#2ed573;
}

.aj-badge-seller{
background:#334155;
}

.aj-badge-seller-sahibinden{
background:#374151;
}

.aj-badge-seller-galeri{
background:#2563eb;
}

.aj-badge-seller-yetkili_bayi{
background:#0f766e;
}