/**
 * SosyalCell Sepet Sistemi Stilleri
 */

/* ========== Sepet İkonu (Header) ========== */
.menubut-sepet {
    margin-left: 10px;
    transition: .4s;
    position: relative;
}
.menubut-sepet:hover {
    transform: scale(1.08);
}
.menubut-sepet a {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.menubut-sepet a:hover {
    background: rgba(0,0,0,0.15);
}
.menubut-sepet a i {
    font-size: 18px;
}
.sepet-sayac {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(231,76,60,0.4);
    animation: sepetPulse 0.3s ease;
    z-index: 2;
}
@keyframes sepetPulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========== Popup Overlay ========== */
#sepetPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
#sepetPopupOverlay.aktif {
    opacity: 1;
    visibility: visible;
}

/* ========== Popup ========== */
#sepetPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 99999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    width: 420px;
    max-width: 92vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
#sepetPopup.aktif {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Başlık */
.sepet-popup-header {
    padding: 20px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.sepet-popup-header .sepet-popup-ikon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
    animation: sepetBasarili 0.5s ease;
}
@keyframes sepetBasarili {
    0% { transform: scale(0) rotate(-30deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.sepet-popup-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.sepet-popup-header p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}
#sepetPopupUrunAdi {
    font-weight: 600;
    color: #333;
}
#sepetPopupKapat {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
#sepetPopupKapat:hover {
    background: #f5f5f5;
    color: #555;
}

/* Popup Butonlar */
.sepet-popup-butonlar {
    padding: 16px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sepet-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    outline: none;
    width: 100%;
    text-align: center;
}

/* Sepete Git Butonu */
.sepet-popup-btn.sepet-popup-git {
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.sepet-popup-btn.sepet-popup-git:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Alışverişe Devam Et Butonu */
.sepet-popup-btn.sepet-popup-devam {
    background: #f5f5f5;
    color: #555 !important;
    border: 1px solid #eee;
}
.sepet-popup-btn.sepet-popup-devam:hover {
    background: #eaeaea;
    color: #333 !important;
}

/* ========== Sepete Ekle Butonu ========== */
.btn-sepete-ekle {
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}
.btn-sepete-ekle i {
    margin-right: 4px;
}
.btn-sepete-ekle.sepete-eklendi {
    pointer-events: none;
}

/* ========== Sepet Sayfası ========== */
.sepet-bos-mesaj {
    text-align: center;
    padding: 40px 20px;
}
.sepet-bos-mesaj p {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.sepet-bos-mesaj span {
    color: #999;
    font-size: 14px;
}

.sepet-urunler {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sepet-urun-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9fb;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.sepet-urun-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sepet-urun-bilgi {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.sepet-urun-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.sepet-urun-detay {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sepet-urun-baslik {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sepet-urun-fiyat {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.sepet-urun-adet {
    font-size: 12px;
    color: #aaa;
}
.sepet-urun-sil {
    background: none;
    border: none;
    color: #ccc;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}
.sepet-urun-sil:hover {
    background: #fee;
    color: #e74c3c;
}
.sepet-urun-islem {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sepet sayfası container */
.sepet-sayfa-container {
    padding: 30px 0 50px;
}
.sepet-sayfa-baslik {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sepet-sayfa-baslik i {
    font-size: 22px;
}
.sepet-islemler {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.sepet-islemler .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 15px;
}
.sepet-temizle-btn {
    background: #f5f5f5 !important;
    color: #777 !important;
    border: 1px solid #eee !important;
}
.sepet-temizle-btn:hover {
    background: #eee !important;
    color: #555 !important;
}

/* Sol bar sepet butonu */
.sepetsolico {
    position: relative;
    left: 0;
    width: 235px;
    font-size: 20px;
    background: #f39c12;
    color: #fff !important;
    border-radius: 0 20px 20px 0;
    padding: 10px 5px;
    box-shadow: 0 3px 7px #0000002e;
    transition: .7s;
    margin-bottom: 10px;
}
.sepetsolico:hover {
    left: 175px;
}
.sepetsolico i {
    padding-top: 2px;
    padding-right: 12px;
    font-size: 24px;
    float: right;
}
.sepetsolico a,
a.sepetsolbut {
    text-decoration: none;
    padding-left: 10px;
    color: #fff;
    text-align: left;
}
.sepet-sol-bar {
    position: relative;
}
.sepet-sol-bar .sepet-sayac {
    top: -4px;
    right: 10px;
    width: 18px;
    height: 18px;
    font-size: 10px;
}
@media (max-width: 700px) {
    .sepetsolico {
        left: -170px;
        font-size: 25px;
    }
    .sepetsolico:hover {
        left: 0px !important;
    }
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 768px) {
    #sepetPopup {
        width: 92vw;
        max-width: 400px;
        border-radius: 14px;
    }
    .sepet-popup-header {
        padding: 18px 20px 14px;
    }
    .sepet-popup-header .sepet-popup-ikon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .sepet-popup-header h4 {
        font-size: 16px;
    }
    .sepet-popup-header p {
        font-size: 13px;
    }
    .sepet-popup-butonlar {
        padding: 14px 20px 20px;
        gap: 8px;
    }
    .sepet-popup-btn {
        padding: 13px 16px;
        font-size: 14px;
    }
}

/* Mobil küçük */
@media (max-width: 480px) {
    #sepetPopup {
        width: 95vw;
        max-width: none;
        bottom: 0;
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
    }
    #sepetPopup.aktif {
        transform: translateX(-50%) translateY(0);
    }
    .sepet-popup-header {
        padding: 16px 18px 12px;
    }
    .sepet-popup-header .sepet-popup-ikon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .sepet-popup-header h4 {
        font-size: 15px;
    }
    .sepet-popup-butonlar {
        padding: 12px 18px 24px;
        gap: 8px;
    }
    .sepet-popup-btn {
        padding: 14px 14px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    /* Mobilde sepet sayfası */
    .sepet-sayfa-baslik {
        font-size: 20px;
    }
    .sepet-urun-item {
        padding: 12px;
    }
    .sepet-urun-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .sepet-urun-baslik {
        font-size: 13px;
    }
    .sepet-urun-fiyat {
        font-size: 12px;
    }
    .sepet-islemler {
        flex-direction: column;
    }
    .sepet-islemler .btn {
        width: 100%;
        text-align: center;
    }
}

/* Header sepet butonu - mobil nav */
@media (max-width: 991px) {
    .menubut-sepet {
        margin: 10px 25px;
    }
    .menubut-sepet a {
        width: auto;
        height: auto;
        border-radius: 13px;
        padding: 8px 16px;
        gap: 6px;
    }
    .menubut-sepet a::after {
        content: 'Sepetim';
        font-weight: 600;
    }
}

/* Sepet sayfası responsive */
@media (max-width: 768px) {
    .sepet-sayfa-wrapper .table th,
    .sepet-sayfa-wrapper .table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}
