/**
 * Sepet Sayfası CSS
 * BÜYEM - Modern ve Şık Sepet Tasarımı
 */

/* ===================================
   CART PAGE LAYOUT
   =================================== */

.cart-page-wrapper {
    min-height: 60vh;
    padding: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   CART HEADER
   =================================== */

.cart-page-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    
}

.cart-page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1d458b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cart-page-title i {
    font-size: 32px;
    color: #2a5298;
}

.cart-item-count {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* ===================================
   EMPTY CART
   =================================== */

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-cart-icon {
    font-size: 100px;
    color: #d0d7de;
    margin-bottom: 30px;
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.empty-cart-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d458b 0%, #163a73 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 69, 139, 0.3);
}

.btn-continue-shopping:hover {
    background: linear-gradient(135deg, #163a73 0%, #0d2f5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 69, 139, 0.4);
}

/* ===================================
   CART CONTENT GRID
   =================================== */

.cart-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* ===================================
   CART ITEMS SECTION
   =================================== */

.cart-items-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===================================
   CART ITEM
   =================================== */

.cart-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 25px;
    padding: 25px;
    background: #f8f9fb;
    border: 2px solid #e8ecf1;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    border-color: #1d458b;
    box-shadow: 0 6px 25px rgba(29, 69, 139, 0.12);
    transform: translateY(-2px);
}

/* Cart Item Image */
.cart-item-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.course-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.course-type-badge.online {
    background: linear-gradient(135deg, #4facfe 0%, #4facfe 100%);
    color: white;
}

.course-type-badge.in-person {
    background: linear-gradient(135deg, #4facfe 0%, #4facfe 100%);
    color: white;
}

/* Cart Item Details */
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4!important;
}

.cart-item-title a {
    color: #1d458b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-title a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.cart-item-period {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    flex-wrap: wrap;
}

.cart-item-period i {
    color: #1d458b;
    font-size: 16px;
}

.period-name {
    font-weight: 600;
    color: #333;
}

.period-dates {
    color: #777;
    font-size: 13px;
}

.cart-item-availability {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.availability-ok {
    color: #28a745;
}

.availability-warning {
    color: #ffc107;
}

.availability-full {
    color: #dc3545;
}

.cart-item-availability i {
    font-size: 14px;
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: white;
    border: none;
    color: #1d458b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #1d458b;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 2px solid #e0e6ed;
    border-right: 2px solid #e0e6ed;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8f9fb;
}

.btn-remove-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 2px solid #ffe0e0;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-item:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.btn-remove-item i {
    font-size: 15px;
}

/* Cart Item Price */
.cart-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
}

.item-price-label,
.item-subtotal-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 2px;
}

.item-unit-price {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.item-total-price {
    font-size: 22px;
    font-weight: 700;
    color: #1d458b;
    margin-top: auto;
}

/* ===================================
   CART ACTIONS BOTTOM
   =================================== */

.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e8ecf1;
}

.btn-continue-shopping-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #1d458b;
    color: #1d458b;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue-shopping-secondary:hover {
    background: #1d458b;
    color: white;
    transform: translateX(-5px);
}

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 2px solid #ffe0e0;
    color: #dc3545;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

/* ===================================
   CART SUMMARY SECTION
   =================================== */

.cart-summary-section {
    position: sticky;
    top: 20px;
}

.cart-summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8ecf1;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d458b;
    margin: 0 0 25px 0!important;
    padding-bottom: 20px!important;
    border-bottom: 2px solid #e8ecf1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-title i {
    color: #2a5298;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.summary-label {
    color: #555;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8ecf1, transparent);
    margin: 10px 0;
}

.summary-total {
    padding: 20px 0;
    border-top: 2px solid #1d458b;
    margin-top: 15px;
}

.summary-total .summary-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.summary-total .summary-value {
    font-size: 26px;
    font-weight: 700;
    color: #1d458b;
}

.summary-actions {
    margin-top: 25px;
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-checkout i {
    font-size: 20px;
}

.checkout-info {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin: 15px 0 0 0!important;
    line-height: 1.5;
}

.checkout-info i {
    color: #1d458b;
    margin-right: 5px;
}

/* Giriş yapılmamış uyarı */
.checkout-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

.checkout-warning i {
    color: #4a72ae;
}

/* Giriş yap ve öde butonu */
.btn-checkout-login {
    background: linear-gradient(135deg, #163A73, #1a42af);
}

.btn-checkout-login:hover {
    background: linear-gradient(135deg, #163A73, #184fe9);
}

.payment-methods {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e8ecf1;
    text-align: center;
}

.payment-methods-title {
    font-size: 13px;
    color: #777;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 32px;
    color: #1d458b;
}

.payment-icons i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.payment-icons i:hover {
    opacity: 1;
}

/* Cart Info Box */
.cart-info-box {
    margin-top: 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebf8 100%);
    border: 2px solid #b8dff5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cart-info-box i {
    font-size: 28px;
    color: #1d458b;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1d458b;
}

.info-box-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #ffffff;
}

.toast-success i {
    color: #ffffff;
    font-size: 20px;
}

.toast-error {
    border-left: 4px solid #ffffff;
}

.toast-error i {
    color: #ffffff;
    font-size: 20px;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info i {
    color: #ffffff;
    font-size: 20px;
}

.toast span {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .cart-content-grid {
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
    
    .cart-item {
        grid-template-columns: 180px 1fr auto;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-section {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 160px 1fr;
        gap: 15px;
    }
    
    .cart-item-price {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 15px;
        border-top: 2px solid #e8ecf1;
    }
}

@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 30px 0;
    }
    
    .cart-page-title {
        font-size: 28px;
    }
    
    .cart-items-section {
        padding: 20px 15px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    
    .cart-item-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cart-item-image img {
        height: 180px;
    }
    
    .cart-item-details,
    .cart-item-price {
        text-align: center;
    }
    
    .cart-item-period {
        justify-content: center;
    }
    
    .cart-item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cart-item-price {
        text-align: center;
        border-top: none;
        padding-top: 0;
    }
    
    .cart-actions-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-continue-shopping-secondary,
    .btn-clear-cart {
        width: 100%;
        justify-content: center;
    }
    
    .cart-summary-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .cart-page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .empty-cart {
        padding: 60px 20px;
    }
    
    .empty-cart-icon {
        font-size: 80px;
    }
    
    .empty-cart-title {
        font-size: 24px;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .cart-item-image img {
        height: 150px;
    }
    
    .cart-item-title {
        font-size: 16px;
    }
    
    .summary-total .summary-value {
        font-size: 22px;
    }
    
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}

/* ===================================
   PAKET ÜRÜN STİLLERİ
   =================================== */

.cart-item-package {
    border: 2px solid #1d458b;
    background: linear-gradient(135deg, #fafbff 0%, #f5f8ff 100%);
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: start;
    gap: 20px;
    padding: 20px;
}

.cart-item-package .cart-item-image {
    width: 200px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-package .cart-item-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.course-type-badge.package {
    background: linear-gradient(135deg, #1d458b 0%, #163a73 100%);
    color: white;
    font-size: 11px;
    padding: 5px 10px;
}

/* Paket için responsive */
@media (max-width: 992px) {
    .cart-item-package {
        grid-template-columns: 160px 1fr;
    }
    
    .cart-item-package .cart-item-image {
        width: 160px;
    }
    
    .cart-item-package .cart-item-image img {
        height: 110px;
    }
    
    .cart-item-package .cart-item-price {
        grid-column: 1 / -1;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .cart-item-package {
        grid-template-columns: 1fr;
    }
    
    .cart-item-package .cart-item-image {
        width: 100%;
        max-width: 250px;
    }
    
    .cart-item-package .cart-item-image img {
        height: 140px;
    }
}

/* Seçilen Dersler Listesi */
.cart-item-lessons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #d0d7e5;
}

.cart-item-lessons .lessons-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d458b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-lessons .lessons-title i {
    font-size: 16px;
}

.cart-item-lessons .lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-lessons .lessons-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8f0ff;
    font-size: 13px;
}

.cart-item-lessons .lesson-name {
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 150px;
}

.cart-item-lessons .lesson-date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-lessons .lesson-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #1d458b;
}

.cart-item-lessons .lesson-time {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-lessons .lesson-time::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 11px;
    color: #1d458b;
}

.cart-item-lessons .lesson-price {
    font-weight: 600;
    color: #1d458b;
    margin-left: auto;
}

/* Responsive - Paket Dersler */
@media (max-width: 768px) {
    .cart-item-lessons .lessons-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .cart-item-lessons .lesson-name {
        width: 100%;
    }
    
    .cart-item-lessons .lesson-price {
        margin-left: 0;
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid #e8f0ff;
        width: 100%;
        text-align: right;
    }
}

