@import url("cross-sell.css");

/* Sepet sayfası — modern düzen (beğenilmezse sepet.php + bu dosya geri alınır) */
.ta-sepet-page main {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 28%);
}

.ta-sepet-modern {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.ta-sepet-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.ta-sepet-modern .ta-sepet-title {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.ta-sepet-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.ta-sepet-modern .ta-siparis-alert-success {
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.ta-sepet-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.ta-sepet-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ta-sepet-modern .ta-sepet-item {
    border: none;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: block;
}

.ta-sepet-item-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.ta-sepet-item-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240, 36, 104, 0.12), rgba(240, 36, 104, 0.04));
    color: var(--main-color, #f02468);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
}

.ta-sepet-item-body {
    flex: 1 1 200px;
    min-width: 0;
}

.ta-sepet-modern .ta-sepet-item-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--main-color, #f02468);
}

.ta-sepet-modern .ta-sepet-item-name {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0.15rem 0;
}

.ta-sepet-modern .ta-sepet-item-qty {
    font-size: 0.82rem;
}

.ta-sepet-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ta-sepet-modern .ta-sepet-item-price {
    font-size: 1.15rem;
    color: #0f172a;
}

.ta-sepet-item-btns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ta-sepet-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff !important;
    background: #16a34a;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: none !important;
    transition: background 0.2s;
}

.ta-sepet-pay-btn:hover {
    background: #15803d;
    color: #fff !important;
    transform: none;
}

.ta-sepet-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ta-sepet-remove-btn:hover {
    color: #dc2626 !important;
    border-color: #fecaca;
    background: #fef2f2;
}

/* Özet kartı */
.ta-sepet-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 100px;
}

.ta-sepet-summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.ta-sepet-summary-rows {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.85rem;
}

.ta-sepet-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.ta-sepet-summary-row span:last-child {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.ta-sepet-modern .ta-sepet-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: #64748b;
}

.ta-sepet-modern .ta-sepet-total strong {
    font-size: 1.45rem;
    color: #0f172a;
    font-weight: 800;
}

.ta-sepet-modern .ta-sepet-hint {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.ta-sepet-modern .ta-sepet-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25) !important;
}

.ta-sepet-modern .ta-sepet-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3) !important;
}

/* Boş sepet */
.ta-sepet-modern .ta-sepet-empty {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 3.5rem 2rem;
}

.ta-sepet-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}

/* Çapraz satış — sepet içinde */
.ta-sepet-modern .ta-cross-sell {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px dashed rgba(240, 36, 104, 0.25);
    background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%);
}

.ta-sepet-modern .ta-cross-sell-item {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.ta-sepet-modern .ta-cross-sell-actions .btn {
    box-shadow: none !important;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

@media (max-width: 768px) {
    .ta-sepet-grid {
        grid-template-columns: 1fr;
    }
    .ta-sepet-summary-card {
        position: static;
        order: -1;
    }
    .ta-sepet-item-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ta-sepet-item-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
