/* Metreküp Hesaplama Aracı Stilleri */
.metrekup-hesaplama-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    box-sizing: border-box;
}

.metrekup-baslik {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    color: #333;
}

.metrekup-baslik:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f60;
    margin: 10px auto 0;
}

/* Kategoriler */
.metrekup-kategoriler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.kategori-buton {
    background-color: #bed9da;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(20% - 10px);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kategori-buton.aktif {
    background-color: #f9f9f9;
    color: #333;
}

.kategori-buton:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.kategori-buton i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.kategori-buton span {
    font-size: 14px;
    font-weight: bold;
}

/* Mobil Kategori Seçici */
.mobil-kategori-secici {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}

.mobil-kategori-secici select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #bed9da;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Ana İçerik Düzeni */
.metrekup-icerik-container {
    display: flex;
    gap: 30px;
}

.metrekup-esyalar-container {
    flex: 0 0 70%;
}

.metrekup-sonuc-container {
    flex: 0 0 30%;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Eşyalar */
.esyalar-grup {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.esya-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.esya-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.esya-item h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esya-resim {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.esya-resim img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.esya-adet-kontrol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.azalt-btn, .artir-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.azalt-btn:hover, .artir-btn:hover {
    background-color: #f60;
}

.esya-adet {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Sonuç Alanı */
.metrekup-sonuc {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.metrekup-sonuc h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.metrekup-sonuc h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #f60;
    margin-top: 5px;
}

.secili-esyalar-liste {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
}

.bos-liste-mesaji {
    font-style: italic;
    color: #888;
}

.secili-esyalar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.secili-esyalar li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.secili-esya-bilgi {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.secili-esya-adet {
    font-weight: bold;
    margin-right: 5px;
}

.secili-esya-sil {
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 10px;
}

.daha-fazla-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f60;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.daha-fazla-btn:hover {
    opacity: 0.9;
}

.toplam-metrekup {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.toplam-metrekup-baslik {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.metrekup-deger {
    font-size: 32px;
    font-weight: bold;
    color: #f9f9f9;
    background-color: #009000;
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.metrekup-aciklama {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Araç Önerisi */
.arac-onerisi {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.arac-onerisi-baslik {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.arac-onerisi-baslik:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #f60;
    margin-top: 5px;
}

.arac-detay {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.arac-resim {
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arac-resim img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.arac-bilgi {
    text-align: center;
}

.arac-adi {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.arac-aciklama {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.arac-kapasite {
    font-size: 14px;
    color: #666;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

.arac-bilgi-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.arac-bilgi-btn:hover {
    background-color: #e0e0e0;
}

/* Eşya Listesi Modal */
.esya-listesi-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.esya-listesi-modal-icerik {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalAcilis 0.3s ease;
}

@keyframes modalAcilis {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.esya-listesi-modal-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.esya-listesi-modal-baslik h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.esya-listesi-modal-kapat {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.esya-listesi-modal-kapat:hover {
    color: #333;
}

.esya-listesi-modal-liste {
    max-height: 400px;
    overflow-y: auto;
}

.esya-listesi-modal-liste ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.esya-listesi-modal-liste li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.esya-listesi-modal-liste li:last-child {
    border-bottom: none;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .esyalar-grup {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .metrekup-icerik-container {
        flex-direction: column;
    }
    
    .metrekup-esyalar-container,
    .metrekup-sonuc-container {
        flex: 0 0 100%;
    }
    
    .metrekup-sonuc-container {
        position: static;
        margin-top: 30px;
    }
    
    .esyalar-grup {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .metrekup-kategoriler {
        display: none;
    }
    
    .mobil-kategori-secici {
        display: block;
    }
    
    /* Mobil görünümde içerik sıralamasını değiştir */
    .metrekup-icerik-container {
        flex-direction: column-reverse;
    }
    
    .metrekup-sonuc-container {
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .esyalar-grup {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .arac-detay {
        flex-direction: column;
        text-align: center;
    }
    
    .arac-resim {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .esyalar-grup {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .esya-item {
        height: 200px;
    }
    
    .esya-resim {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .esyalar-grup {
        grid-template-columns: repeat(2, 1fr);
    }
}